Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript to include in an html page another external html page

Status
Not open for further replies.

Floof

Technical User
Apr 25, 2001
23
0
0
FR
Hello,[pipe]

I'm developping a website, and i'm trying to do the following : [pc3]

On my website, I have to let users list directory contents,
but the default IIS HTML generated is quite ugly, so I
wanted to have a layer containing this listing so I could still have access to top banner/menu etc ... That's why i thought layers would be the best.

The url would be :

I have tried with IFrames, and it almost works, I read the parameter in the adress using location.search, I manage to update the src attribute of the IFrame, and the folder listing shows up in the IFrame. The only problem is that when I try to use my top-menu (based on DIVs) when a sub-menu shows up, my IFrame disappears ...

my code is very simple :
Code:
<iframe id=&quot;FrameFolderView&quot;></iframe>

<script language=&quot;javascript&quot;>
 <!-- // Hide from Blablabla....
         
         document.all.FrameFolderView.src=location.search.substring(1,location.search.length);

 -->
</script>


Thanks for any help ... [sadeyes]

Floof
 
Sorry I forgot a bit

What I want to do is have this in a div, so that it's compatible with my menu

[flowerface][hammer]

Floof
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top