Forum Moderators: open
The second page is my web page 'orders.asp' which has an iframe.
The problem?
I want to display the file i open in 'filestructure' to be displayed in the iframe on the orders.asp page.
Any ideas, here is a snippet the code so far...
filestructure.asp
dirname="/gpc catalogue/orders"
mypath = "orders/"
Set fso = CreateObject("Scripting.FileSystemObject")
Set folder = fso.GetFolder(server.mappath(dirname))
Set filez = folder.Files
FileCount = folder.Files.Count
response.write "<center><font size=1>There are "
response.write "<b><font size=2>"
response.write FileCount & "</b></font>"
response.write " orders.</font></center><p>"
For Each listing in filez
TotalChars = len(listing.name)
Title = left(listing.name,TotalChars - 4)
Title = replace(Title,"_"," ")
response.write "<A HREF='" & mypath
response.write listing.name
response.write "' class=""menu"" target=""_new"">"
response.write Title
response.write "</A><br>"
Next
%>
Orders.asp (iframe for the link to be displayed)
<iframe src=" this is where i want the filestrure page to open" border=3 frameborder=0 marginheight=0 marginwidth=0 width="100%" height="100%" name="iframeElement" id="iframeElement" scrolling=none></iframe>
thanks for the help...
filestructure.asp
response.write "<A HREF='orders.asp?path=" & mypath
response.write listing.name
response.write "' class=""menu"" target=""_new"">"
response.write Title
response.write "</A><br>"
Orders.asp
iframeSource = request.querystring("path")
<iframe src="<%= iframeSource %>" border=3 frameborder=0 marginheight=0 marginwidth=0 width="100%" height="100%" name="iframeElement" id="iframeElement" scrolling=none></iframe>
If you want the links on the same page as the Iframe just link or post to the same page.