homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

JS dropdown menus and iframe problem in old browsers
JS drop-down menus, iframe, old browsers

 1:43 pm on Mar 24, 2003 (gmt 0)

Hello all!

I'm a student doing a webdesign project and have encountered trouble with the way JS drop-down menus appear when using iframes in old browsers (ie 5.0 and earlier versions). The problem is that the menu drops down behind the iframe instead of in front of it(like it does in ie 6.0).
I was wondering if anyone has a solution to this problem. All I want is for the menu to drop down in front of the iframe, but I have no idea how to solve this problem myself. (I don't have much experience with JavaScript)

I'm using the iframe to display a html document inside another html document. (black field on the site, see web-address below)

I've temporarily put the site up at the web-address below.

<Sorry, no personal URLs>

Any help would be greatly appreciated!

Thanks in advance.


[edited by: tedster at 3:47 pm (utc) on Mar. 25, 2003]



 6:10 pm on Mar 26, 2003 (gmt 0)

Welcome to WebmasterWorld Puppet,

In older browsers iframes and forms are considered ontop. They are the highest in the z-index. I know with some menu scripts you can put code in the page that is displayed in the frame so you can overcome this problem. I don't know of any other way than that though.


 6:31 pm on Mar 26, 2003 (gmt 0)

A hearty welcome [webmasterworld.com] to WebmasterWorld from me too, Puppet!

While, as korkus said, it is possible - it's important to remember that these JS/dHTML drop down menus make use of the Document Object Model (DOM).

An iFrame, by definition, has a DOM seperate (but assessible) to that of the containing page.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved