Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
Have run into a roadblock and was wondering if I could get inspiration from
the group. I have an ASP file that has 2 frames located on it. There is
the master frame header page called h1.asp, left.asp and right.asp. On the
right frame is a list of area (directories) When one is selected the left
frame shows a list of files (DWF's) located within. When the person selects
the DWF file to view then that opens in the left frame.
The question I have is how can I send the name of the file the user selected
to the left window as a variable to show what is being viewed.
Tried session variable but not sure what to pass after the selection. Any
pointers??
Have you tried sending it as a parameter on the command line such as
left.asp?fileselected=filename.dwf In you ASP, you can get the parameter
from the querystring.
"SHawn" wrote in message
news:E2715A4C3F0F188DB465F5389F238A6B@in.WebX.maYIadrTaRb...
> To all
>
> Have run into a roadblock and was wondering if I could get inspiration
from
> the group. I have an ASP file that has 2 frames located on it. There is
> the master frame header page called h1.asp, left.asp and right.asp. On
the
> right frame is a list of area (directories) When one is selected the left
> frame shows a list of files (DWF's) located within. When the person
selects
> the DWF file to view then that opens in the left frame.
> The question I have is how can I send the name of the file the user
selected
> to the left window as a variable to show what is being viewed.
>
> Tried session variable but not sure what to pass after the selection. Any
> pointers??
>
> Shawn Romkey
>
>
When I add ANYTHING to the querystring I get the following error: CAdEPlotDocument::LoadStream : 595.
And when I look at the GET request sent from the viewer it doesn't contain the query string part (See thread Problem streamin DWG file).
So is this something you know about or is it only me having these problems?
Are you saying that the line that opens the DWF file. I tried putting it
there but it just opens a second frame beside the first frame. It has the
variable so I can display it but now I have two left.asp frames, one with
the name and the original without the name. If I then refresh it keeps the
original frame but not the one with the file name displayed. Maybe my
structure is wrong??
Again, any further info or a location where I could find something
similar????
Shawn
"John Schmier (Autodesk)" wrote in
message news:3D87457943B23FAD946B1887E5993EF9@in.WebX.maYIadrTaRb...
> Have you tried sending it as a parameter on the command line such as
> left.asp?fileselected=filename.dwf In you ASP, you can get the parameter
> from the querystring.
>
> "SHawn" wrote in message
> news:E2715A4C3F0F188DB465F5389F238A6B@in.WebX.maYIadrTaRb...
> > To all
> >
> > Have run into a roadblock and was wondering if I could get inspiration
> from
> > the group. I have an ASP file that has 2 frames located on it. There
is
> > the master frame header page called h1.asp, left.asp and right.asp. On
> the
> > right frame is a list of area (directories) When one is selected the
left
> > frame shows a list of files (DWF's) located within. When the person
> selects
> > the DWF file to view then that opens in the left frame.
> > The question I have is how can I send the name of the file the user
> selected
> > to the left window as a variable to show what is being viewed.
> >
> > Tried session variable but not sure what to pass after the selection.
Any
> > pointers??
> >
> > Shawn Romkey
> >
> >
>
>
It's sounding like I'm not understanding the problem fully here.
As I understand it, you have 3 frames, the left frame is a directory
browser. when the user clicks on a link in this frame you want to send a
parameter to that frame (and that frame only) about what they selected.
Based on this last message, it sounds like you may want to do something
different from my understanding. If you want to send that parameter to more
than one frame, lets take for example the left frame is to have the file
name for updating the directory, and the right frame would be the DWF
control, then you may be able to handle this with some javascript, that
would update the right frame first (update the source of the frame) and then
send update itself. Or you could update the entire frameset at the _top
level with a set of parameters are rebuild all 3 windows within the
frameset.
"SHawn" wrote in message
news:5005ED14A9C6015377F7E74E95505235@in.WebX.maYIadrTaRb...
> John
>
> Thanks for the reply.
>
> Are you saying that the line that opens the DWF file. I tried putting it
> there but it just opens a second frame beside the first frame. It has the
> variable so I can display it but now I have two left.asp frames, one with
> the name and the original without the name. If I then refresh it keeps the
> original frame but not the one with the file name displayed. Maybe my
> structure is wrong??
>
> Again, any further info or a location where I could find something
> similar????
>
> Shawn
>
> "John Schmier (Autodesk)" wrote in
> message news:3D87457943B23FAD946B1887E5993EF9@in.WebX.maYIadrTaRb...
> > Have you tried sending it as a parameter on the command line such as
> > left.asp?fileselected=filename.dwf In you ASP, you can get the
parameter
> > from the querystring.
> >
> > "SHawn" wrote in message
> > news:E2715A4C3F0F188DB465F5389F238A6B@in.WebX.maYIadrTaRb...
> > > To all
> > >
> > > Have run into a roadblock and was wondering if I could get inspiration
> > from
> > > the group. I have an ASP file that has 2 frames located on it. There
> is
> > > the master frame header page called h1.asp, left.asp and right.asp.
On
> > the
> > > right frame is a list of area (directories) When one is selected the
> left
> > > frame shows a list of files (DWF's) located within. When the person
> > selects
> > > the DWF file to view then that opens in the left frame.
> > > The question I have is how can I send the name of the file the user
> > selected
> > > to the left window as a variable to show what is being viewed.
> > >
> > > Tried session variable but not sure what to pass after the selection.
> Any
> > > pointers??
> > >
> > > Shawn Romkey
> > >
> > >
> >
> >
>
>
Best way to show you is to post the ASP files and the links. Basically the
left frame is static and never changes. It is a link of a series of
directories. The files in those directoroes chances so when the user
selects the directory to view a list shows up in the right frame. The user
can then select the DWF to view, which appears in the same frame (the right
one). The problem is that I want the user to see the current name of the
file just selected in the left frame at the bottom of the list of
directories. My thought was to past the name of the selected drawing up to
the header frame with a querystring and then read that with the left frame.
The problem is setting the variable (names "ID") that then can be read by
the request.querystring option?
I don't know how else to describe it. Have a look at the attached files and
maybe it will be a little clearer!
--
Shawn Romkey P.Geo
Noranda Mining
"John Schmier (Autodesk)" wrote in
message news:43B521148C06949F9010B4AE7477784B@in.WebX.maYIadrTaRb...
> It's sounding like I'm not understanding the problem fully here.
>
> As I understand it, you have 3 frames, the left frame is a directory
> browser. when the user clicks on a link in this frame you want to send a
> parameter to that frame (and that frame only) about what they selected.
>
> Based on this last message, it sounds like you may want to do something
> different from my understanding. If you want to send that parameter to
more
> than one frame, lets take for example the left frame is to have the file
> name for updating the directory, and the right frame would be the DWF
> control, then you may be able to handle this with some javascript, that
> would update the right frame first (update the source of the frame) and
then
> send update itself. Or you could update the entire frameset at the _top
> level with a set of parameters are rebuild all 3 windows within the
> frameset.
>
>
>
> "SHawn" wrote in message
> news:5005ED14A9C6015377F7E74E95505235@in.WebX.maYIadrTaRb...
> > John
> >
> > Thanks for the reply.
> >
> > Are you saying that the line that opens the DWF file. I tried putting
it
> > there but it just opens a second frame beside the first frame. It has
the
> > variable so I can display it but now I have two left.asp frames, one
with
> > the name and the original without the name. If I then refresh it keeps
the
> > original frame but not the one with the file name displayed. Maybe my
> > structure is wrong??
> >
> > Again, any further info or a location where I could find something
> > similar????
> >
> > Shawn
> >
> > "John Schmier (Autodesk)" wrote
in
> > message news:3D87457943B23FAD946B1887E5993EF9@in.WebX.maYIadrTaRb...
> > > Have you tried sending it as a parameter on the command line such as
> > > left.asp?fileselected=filename.dwf In you ASP, you can get the
> parameter
> > > from the querystring.
> > >
> > > "SHawn" wrote in message
> > > news:E2715A4C3F0F188DB465F5389F238A6B@in.WebX.maYIadrTaRb...
> > > > To all
> > > >
> > > > Have run into a roadblock and was wondering if I could get
inspiration
> > > from
> > > > the group. I have an ASP file that has 2 frames located on it.
There
> > is
> > > > the master frame header page called h1.asp, left.asp and right.asp.
> On
> > > the
> > > > right frame is a list of area (directories) When one is selected the
> > left
> > > > frame shows a list of files (DWF's) located within. When the person
> > > selects
> > > > the DWF file to view then that opens in the left frame.
> > > > The question I have is how can I send the name of the file the user
> > > selected
> > > > to the left window as a variable to show what is being viewed.
> > > >
> > > > Tried session variable but not sure what to pass after the
selection.
> > Any
> > > > pointers??
> > > >
> > > > Shawn Romkey
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Ok, I now understand (I hope) your problem and have worked up some sort of
solution. The problem from what I can understand of it doesn't have to do
with the DWF, more of a hyperlink / coding issue. Here's my solution (I've
attached 2 of your files that I altered to come up with the solution).
In the left frame (contents.asp), I added a Form with a text field. This is
where the file name will be presented to the user when they click on a dwf
link in the right frame.
In the right frame (Prints.asp) after the user has selected a project (for
example the 425 level) I have added a bit of JavaScript code to the top:
function SelectedLink(path, filename){
top.frames('contents').document.forms('Messages').SelFileName.value =
filename;
top.frames('main').location.href = path + '/' + filename;
}
As well as altered the code where the link is written out:
JavaScript:SelectedLink('" & dirc & "', '" & fnames(i) & "')
Now, what will happen is when the user clicks on one of these special links,
the link call the JavaScript function and pass the directory and filename
separately, the JavaScript Function will then update the left frame's form
with the proper text, and then change the url of the main page to the
document requested.
I hope I understood the problem correctly.
"Shawn Romkey" wrote in message
news:17C38BD898CE4AD20D1E52EC9DBB59A1@in.WebX.maYIadrTaRb...
> John
>
> Best way to show you is to post the ASP files and the links. Basically
the
> left frame is static and never changes. It is a link of a series of
> directories. The files in those directoroes chances so when the user
> selects the directory to view a list shows up in the right frame. The
user
> can then select the DWF to view, which appears in the same frame (the
right
> one). The problem is that I want the user to see the current name of the
> file just selected in the left frame at the bottom of the list of
> directories. My thought was to past the name of the selected drawing up
to
> the header frame with a querystring and then read that with the left
frame.
> The problem is setting the variable (names "ID") that then can be read by
> the request.querystring option?
>
> I don't know how else to describe it. Have a look at the attached files
and
> maybe it will be a little clearer!
>
>
> --
> Shawn Romkey P.Geo
> Noranda Mining
>
> "John Schmier (Autodesk)" wrote in
> message news:43B521148C06949F9010B4AE7477784B@in.WebX.maYIadrTaRb...
> > It's sounding like I'm not understanding the problem fully here.
> >
> > As I understand it, you have 3 frames, the left frame is a directory
> > browser. when the user clicks on a link in this frame you want to send
a
> > parameter to that frame (and that frame only) about what they selected.
> >
> > Based on this last message, it sounds like you may want to do something
> > different from my understanding. If you want to send that parameter to
> more
> > than one frame, lets take for example the left frame is to have the file
> > name for updating the directory, and the right frame would be the DWF
> > control, then you may be able to handle this with some javascript, that
> > would update the right frame first (update the source of the frame) and
> then
> > send update itself. Or you could update the entire frameset at the _top
> > level with a set of parameters are rebuild all 3 windows within the
> > frameset.
> >
> >
> >
> > "SHawn" wrote in message
> > news:5005ED14A9C6015377F7E74E95505235@in.WebX.maYIadrTaRb...
> > > John
> > >
> > > Thanks for the reply.
> > >
> > > Are you saying that the line that opens the DWF file. I tried
putting
> it
> > > there but it just opens a second frame beside the first frame. It has
> the
> > > variable so I can display it but now I have two left.asp frames, one
> with
> > > the name and the original without the name. If I then refresh it keeps
> the
> > > original frame but not the one with the file name displayed. Maybe
my
> > > structure is wrong??
> > >
> > > Again, any further info or a location where I could find something
> > > similar????
> > >
> > > Shawn
> > >
> > > "John Schmier (Autodesk)" wrote
> in
> > > message news:3D87457943B23FAD946B1887E5993EF9@in.WebX.maYIadrTaRb...
> > > > Have you tried sending it as a parameter on the command line such as
> > > > left.asp?fileselected=filename.dwf In you ASP, you can get the
> > parameter
> > > > from the querystring.
> > > >
> > > > "SHawn" wrote in message
> > > > news:E2715A4C3F0F188DB465F5389F238A6B@in.WebX.maYIadrTaRb...
> > > > > To all
> > > > >
> > > > > Have run into a roadblock and was wondering if I could get
> inspiration
> > > > from
> > > > > the group. I have an ASP file that has 2 frames located on it.
> There
> > > is
> > > > > the master frame header page called h1.asp, left.asp and
right.asp.
> > On
> > > > the
> > > > > right frame is a list of area (directories) When one is selected
the
> > > left
> > > > > frame shows a list of files (DWF's) located within. When the
person
> > > > selects
> > > > > the DWF file to view then that opens in the left frame.
> > > > > The question I have is how can I send the name of the file the
user
> > > > selected
> > > > > to the left window as a variable to show what is being viewed.
> > > > >
> > > > > Tried session variable but not sure what to pass after the
> selection.
> > > Any
> > > > > pointers??
> > > > >
> > > > > Shawn Romkey
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
<%@ LANGUAGE="VBScript" %>
Current Production Drilling Prints
Current Production Drilling Prints
<%
dirc = request ("dirc")
response.write ("
color=""#3300cc"" size=""5""> Mine Engineering Production
Drilling Prints
set fs = CreateObject("Scripting.FileSystemObject")
set folder = fs.GetFolder(path)
fileCount = folder.files.count
dim fNames()
dim dmod(9999)
redim fNames(fileCount)
cFcount = 0
for each file in folder.files
cFcount = cFcount + 1
dmod (cFcount) = cstr (file.DateLastModified)
fNames(cFcount) = lcase(file.name)
next
for tName = 1 to fileCount
for nName = (tName + 1) to fileCount
dd = cdate (dmod (nName))
dd1 = cdate (dmod (tname))
if dd > dd1 then
' if strComp(dmod (nName),dmod (tName),0)=1 then
buffer1 = fNames(tName)
fNames(tName) = fNames(nName)
fNames(nName) = buffer1
buffer = dmod (tName)
dmod (tName) = dmod (nName)
dmod (nName) = buffer
end if
next
next
dim cont
path1 = "/public/web page/PROD_DRILL/"
for i = 1 to fileCount
chk = right (Fnames(i),4)
if chk = ".dwf" or chk = ".pdf" then
Response.Write("
<% sub ListFolderContents(path)
response.Write "path: " & path & "
"
Response.Flush
'response.End
'exit sub
dim fs, folder, file, item, url , path1 , dd ,dd1
set fs = CreateObject("Scripting.FileSystemObject")
set folder = fs.GetFolder(path)
fileCount = folder.files.count
dim fNames()
dim dmod(9999)
redim fNames(fileCount)
cFcount = 0
for each file in folder.files
cFcount = cFcount + 1
dmod (cFcount) = cstr (file.DateLastModified)
fNames(cFcount) = lcase(file.name)
next
for tName = 1 to fileCount
for nName = (tName + 1) to fileCount
dd = cdate (dmod (nName))
dd1 = cdate (dmod (tname))
if dd > dd1 then
' if strComp(dmod (nName),dmod (tName),0)=1 then
buffer1 = fNames(tName)
fNames(tName) = fNames(nName)
fNames(nName) = buffer1
buffer = dmod (tName)
dmod (tName) = dmod (nName)
dmod (nName) = buffer
end if
next
next
dim cont
path1 = "/public/web page/PROD_DRILL/"
for i = 1 to fileCount
chk = right (Fnames(i),4)
if chk = ".dwf" or chk = ".pdf" then
'Response.Write("