- Create Account

Position menu above iframe in older browsers

Forums > General Topics > Position menu above iframe in older browsers
Author
Message

1) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
Hello Angus and all,

I may (??) have managed to have menus always show above iframes, even in browsers that treat iframes as windowed objects. An explanation is given at:
http://www.let.rug.nl/~molendyk/IframeShimArie.

But I didn't have the opportunity to test the technique on browsers like IE5=< and Opera<9. If someone could tell me on this forum if it works (or not) on these browsers, it would be very helpful.

It's nothing special. When the mouse is over the menu, the iframe object is simply replaced by it's content (content isn't an object). When the mouse leaves the menu, the content is replaced again by the iframe itself.

Thanks a lot,
Arie Molendijk.
Arie.

2) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 125.236.--.--
Hmm! I note that the frame scrolls back to the top when the shim kicks in.

if you're doing this though, why not just jump straight to something like my HTMLHttpRequest script, or a similar Ajax library? Might as well keep everything in the document to begin with :).

-  Angus.

3) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
Hello Angus,
Thanks for the quick reply. Something should be done indeed about the scrolling problem.

As for the issue that is really important to me: in all HttpRequest scripts that I've tried, the back button is disabled. Moreover, in HttpRequest scripts AND in scripts using the hidden iframe trick for including pages, separate scripting in the remote files is impossible (all the scripting has to be done in the 'parent page').

So  the reason why I was playing around with the idea that I submitted here is that I wanted something which does not disable the back button and which makes 'independent' scripting possible. My 'solution' meets these requirements (click on PAGE 1 and PAGE 2 of the two pages: the 'alarm' that pops up is not handled in the 'parent page', but in the external files themselves).

Good luck,
Arie.
Arie.

4) Angus Turnbull Group: Moderators
Posts: 4042 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
Alright, happy hacking ;).

-  Angus.

5) molendijk Group: Members
Posts: 78 Joined: 29 Nov 2005 Location: The Netherlands (Groningen) IP: 84.86.--.--
Sorry, mistake!
Arie.

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.