SmartMenus DHTML Menu / JavaScript Menu - Forums

forums

You are not logged in.

#1 2005-Mar-23 09:06:10

freestyle
Member
Registered: 2005-Mar-23
Posts: 5

Exiting menu over iframe in non-IE browsers

When exiting the menu over an iframe in a non-IE browser the "onmouseout" action doesn't appear to fire.

Is there a workaround for this?

Offline

 

#2 2005-Mar-23 15:02:51

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

I am not very sure I understand exactly what you mean. :?

Could you please provide me with some sample?


-Vasil Dinkov-

Offline

 

#3 2005-Mar-29 05:26:42

freestyle
Member
Registered: 2005-Mar-23
Posts: 5

Re: Exiting menu over iframe in non-IE browsers

Sorry i havent got any examples online, i'll try to be as descriptive as possible.

I have a page with the menus on it. Positioned below the menu is an iframe which fills up the rest of the screen.

On IE - if i open up a menu that appears over the iframe, when i move my mouse of off the menu the menu disappears.

On Non-IE Browsers - if i open up a menu that appears over the iframe, when i move my mouse of off the menu the menu doesn't disappear. Any menu that appears over the original page disappear as normal when the mouse is moved off.

Hope that helps.

Offline

 

#4 2005-Mar-29 12:44:24

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

freestyle,

Thanks very much for your detailed explanation! I understood the problem- it's definitely something I haven't noted before. I did a test with Firefox 1.0 and unfortunately, at first sight, I don't see any solution- it seems like it's an issue in the Gecko rendering engine. :?

However, I will do some more tests in the next few days and will try to find some fix although I am a bit sceptic..


-Vasil Dinkov-

Offline

 

#5 2005-Apr-19 06:56:44

freestyle
Member
Registered: 2005-Mar-23
Posts: 5

Re: Exiting menu over iframe in non-IE browsers

There appears to be a possible fix for this.

If the menu was to sit inside a non-visible object (a div for example), non-IE browsers would detect the mouseout from the menu to the non-visible object.

example:-

<html>
<body>

<div style="position:absolute; top: 20; left: 20; padding: 5;">

<div style="width: 100; height: 100; background-color: red;" onmouseout="javascript:alert('hello!');">
</div>

</div>

<iframe width="100%" height="90%"></iframe>

</body>
</html>

Offline

 

#6 2005-Apr-19 23:08:23

BK
Member
Registered: 2005-Apr-19
Posts: 9

Re: Exiting menu over iframe in non-IE browsers

I have exactly the problem as freestyle's.  sad

I have a permanent menu with relative positioning on my website.

I would like to try freestyle's solution to see if it solves the problem, but I'm not familiar with <div>.  yikes

Can anyone tell me how I can code the <div> for my permanent, relative positioning menu?  :?:

Thanks.  wink

Offline

 

#7 2005-Apr-20 16:31:41

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

I am currently doing tests with freestyle's solution but unfortunately it's not that simple to add another <div> element around all menus. It gets even more complicated because that extra div has to also have a decent padding set because otherwise if the cursor is moved a bit faster out of any menu the mouse event doesn't get detected properly.

So it's pretty complicated and I am not very optimistic about it.

Btw, I personally don't think it's a good idea to place an iframe below the menus because in some browsers (even modern like Opera 7/8 ) the menus (as well as all kinds of DHTML layers) cannot be displayed over the iframe box and this means that they will be useless to users browsing with such browsers.


-Vasil Dinkov-

Offline

 

#8 2005-Apr-20 23:20:09

BK
Member
Registered: 2005-Apr-19
Posts: 9

Re: Exiting menu over iframe in non-IE browsers

I know that iframe is not the best way to implement a site too.

But for my site, every page has the same site banner at the top and the copyright notice at the bottom of the page.
What I like about iframe is that the banner/menu and the copyright notice don't need to be loaded each time when a page is loaded.

As you can see, I'm not really good at html.
Besides iframe, is there any way to code the website so that the banner and copyright notice don't need to be loaded every time when a page is loaded?

Offline

 

#9 2005-Apr-22 14:52:29

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

But for my site, every page has the same site banner at the top and the copyright notice at the bottom of the page.
What I like about iframe is that the banner/menu and the copyright notice don't need to be loaded each time when a page is loaded.

As you can see, I'm not really good at html.
Besides iframe, is there any way to code the website so that the banner and copyright notice don't need to be loaded every time when a page is loaded?

Well, you can use a normal frameset with 3 rows instead of iframe. But if you want my opinion- I personally hate frames.


-Vasil Dinkov-

Offline

 

#10 2005-Apr-23 03:25:40

BK
Member
Registered: 2005-Apr-19
Posts: 9

Re: Exiting menu over iframe in non-IE browsers

Thanks for your replies.
I've decided to eliminate the iframe for ease of use.
But now I have some questions/problems, which I posted in the new post.

Really appreciates your help!

Offline

 

#11 2005-May-09 05:21:37

freestyle
Member
Registered: 2005-Mar-23
Posts: 5

Re: Exiting menu over iframe in non-IE browsers

smartmenus,

any luck with the testing? or did you decide that the solution wasn't practical?

Offline

 

#12 2005-May-10 15:02:04

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

freestyle,

You guessed it, unfortunately, I think this is not practical. sad Not practical at all to be honest. :?

This is why I will most probably not implement it in any future release. But I do appreciate your help very much!

Thanks again!


-Vasil Dinkov-

Offline

 

#13 2005-Jul-19 14:33:22

tagmedia
Member
Registered: 2005-Jul-19
Posts: 1

Re: Exiting menu over iframe in non-IE browsers

Hi

I came across this forum when searching for a solution for exactly the same problem (onMouseOut not working for iFrames in non-IE browsers). I don't (yet smile ) use SmartMenus but I found a workaround for my problem - maybe it can be of use here too (or at least for other people searching google for "iframe onmouseout action").

Other Browsers don't seem to recognize the onMouseOut event, but most should be able to handle onMouseOver events for the body- tag.
So if you call the function, that is usually called on onMouseOut to close the menu, from an onMouseOver in the body-tag of the page that is loaded into the iFrame, this should solve the problem. Not a really smart solution but in most cases it should work.

Mathew

Offline

 

#14 2005-Jul-19 15:39:12

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

Mathew,

Thank you very much for sharing your insight! smile

I just did some tests with your solution in Firefox 1.04. It misbehaves only in some very rare occasions (as if the page in the iframe loses focus) but it seems to function pretty well.

So this basically can be considered a pretty nice solution until the guys at Mozilla fix Gecko.

For the SmartMenus users- you just have to add the onmouseover="parent.s_hide()" event handler to the body tag of the page(s) that load(s) in the iframe.

PS: Mathew, thanks once again! I really appreciate it! smile


-Vasil Dinkov-

Offline

 

#15 2007-Feb-24 20:32:36

purifieron
Member
From: USA
Registered: 2007-Feb-24
Posts: 2
Website

Re: Exiting menu over iframe in non-IE browsers

I have exactly the problem as freestyle's.  I came across this website.  If anyone has any solution to this, please let me know


PurifierOn

Offline

 

#16 2007-Feb-25 12:54:42

smartmenus
Site Admin
From: Plovdiv, BULGARIA
Registered: 2003-Feb-23
Posts: 1109
Website

Re: Exiting menu over iframe in non-IE browsers

purifieron wrote:

I have exactly the problem as freestyle's.  I came across this website.  If anyone has any solution to this, please let me know

purifieron,

I am not sure you've read the whole topic (I suppose you haven't smile) but what Mathew suggested seems to work pretty well:

tagmedia wrote:

I came across this forum when searching for a solution for exactly the same problem (onMouseOut not working for iFrames in non-IE browsers). I don't (yet smile ) use SmartMenus but I found a workaround for my problem - maybe it can be of use here too (or at least for other people searching google for "iframe onmouseout action").

Other Browsers don't seem to recognize the onMouseOut event, but most should be able to handle onMouseOver events for the body- tag.
So if you call the function, that is usually called on onMouseOut to close the menu, from an onMouseOver in the body-tag of the page that is loaded into the iFrame, this should solve the problem. Not a really smart solution but in most cases it should work.


-Vasil Dinkov-

Offline

 

Board footer

Powered by FluxBB