Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:02

Force Window On Top?


Poster: whaywardj
Dated: Thursday December 9 2004 - 19:55:31 GMT

I have several menu and submenu links opening in a single window, but can't seem to get the menu item window to stay on top when I focus on my main page to select another item. The new items open under the main page, hidden. How do I keep the menu item window "on top" when I blur focus to select another link from the main page?

(edited:) Oops! Here's the URL: http://hayward.cx.la
Links from "Documentation Resources" are in question.


Poster: John
Dated: Thursday December 9 2004 - 20:18:07 GMT

Please post a URL.


Poster: mfurf
Dated: Friday December 10 2004 - 1:08:46 GMT

whaywardj:

Had a look at your site. My experience is that the submenus stay on top in IE6 but are inaccessbile in the Geckos [Firefox and Mozilla] because they have a fixed position almost offscreen [in IE their positioning correctly follows the scrolling].

Also in the Geckos your Primary and Rates flyouts operate correctly as in IE6 but your Secondary and Wellness flyouts allow only the top lines to show on top with the majority of lines mysteriously going under. Never saw that before.

Neat site design. Has the appearance of a frameset I might suggest decreasing the width of the right frame to eliminate the horizontal scroll bar.

/mfurf

Force Window On Top?


Poster: whaywardj
Dated: Friday December 10 2004 - 4:37:06 GMT

Thanks for the compliment, mfurf. The site -- http://hayward.cx.la -- is something of a "sandbox" where I try to learn new stuff. And, yes, frames are present but not on the right hand side. My scroll bar issues have to do with resolution and screen size variations. I'm working on other renderings in other resolutions and a means to switch from one rendering to another depending on a visitor's screen resolution.

My current headache is not with the menus themselves, however, but with getting secondary windows to stay on top on the primary one. The first click of a menu link gives me a secondary window as desired. Subsequent clicks, though, bury the secondary window under the primary one.

I want a menu-click to present a "popup" (secondary) that remains "on top" and cycles subsequent menu-clicks without "going under." I've named my target window, so I'm getting content in a "single" popup, as desired. It's just getting the thing to keep focus, regardless of whether in the menu I'm linking to a URL, local page, PDF, or what have you, that's got me momentarily hamstrung.

I need a clue.

Thx.



mfurf wrote:
whaywardj:

Had a look at your site. My experience is that the submenus stay on top in IE6 but are inaccessbile in the Geckos [Firefox and Mozilla] because they have a fixed position almost offscreen [in IE their positioning correctly follows the scrolling].

Also in the Geckos your Primary and Rates flyouts operate correctly as in IE6 but your Secondary and Wellness flyouts allow only the top lines to show on top with the majority of lines mysteriously going under. Never saw that before.

Neat site design. Has the appearance of a frameset I might suggest decreasing the width of the right frame to eliminate the horizontal scroll bar.

/mfurf


Poster: Ruth
Dated: Friday December 10 2004 - 11:25:57 GMT

If I understand you, you want to mouseOver Document Resources, then when you click on say IEEE it opens a new window which you've named 'menu'. That window now is on top, becomes the focused window. You then want to go back to the main page, that will bring it on top and focused, then click on say IEC. That has been told to open in the already opened menu window, but it doesn't refocus that window back on top which is what you want it to do. If that's correct, I don't think you can do it. Or rather, IF it can be done I think you have to have some kind of javascript function which somehow tells the link to not only open in that already opened named window, but to refocus that window as on being on top or alternatively, to open the page in that already opened window and to reload that already opened window which would put it back in focus.

As to the pdf links you are not asking it to open in the same named window, when I click the pdf links they each open in a new window. I don't know if that's because it's restarting an instance of the pdf program or not. I'm not real knowledgeable about the interaction of links and opening programs



Ruth


Poster: Ruth
Dated: Friday December 10 2004 - 11:46:20 GMT

I was looking for something else and found this information about new windows which seems to support what I said about a function. "While the browser always gives new windows the focus when they're first created, it doesn't refocus when you send another page to a window that's already open. Omitting this method may leave your new window hidden behind the main window, depending on what else is happening at the time." It wen't on to talk about a function for opening new windows in which you include a focus. This is the function they were using to open new windows
Code:
var newwindow;
function poptastic(url)
{
   newwindow=window.open(url,'name','height=400,width=200');
   if (window.focus) {newwindow.focus()}
}
Hope that helps. I don't know much about functions so that's about it for me.

Ruth

Force Window On Top?


Poster: whaywardj
Dated: Friday December 10 2004 - 13:58:47 GMT

"Yes," "yes," "I was afraid of that," and Thanks!

You understand completely. (Ain't communication a wunnerful thaing?).

I'm presently inclined to agree it's not doable, at least not without some function calls as you suggest, since a similar issue prevails on a scrolling menu I placed in another version of the site at http://nitewing.cx.la ("Additional information" and "work samples" links).

There's a worm in the works, though: If, in the scroll at the footer frame of http://hayward.cx.la, you click an item, content appears on top in a secondary window each time. The rub is that it's a new window every time and I end up with a stack of secondaries. Conversely, in the Milonic menu, I can get content into a single secondary, but can't get the secondary on top.

The solution lurks somewhere between the .class file of the one and a .js file of the other, I suspect. Perhaps, in the code snippet you kindly offered, which I'll try today with the hope that it all just doesn't blow up me. (In code view, my pages are beginning to look like bowls of unsavory spaghetti...or train wrecks!)

Thanks, again.

Cheers.



Ruth wrote:
I was looking for something else and found this information about new windows which seems to support what I said about a function. "While the browser always gives new windows the focus when they're first created, it doesn't refocus when you send another page to a window that's already open. Omitting this method may leave your new window hidden behind the main window, depending on what else is happening at the time." It wen't on to talk about a function for opening new windows in which you include a focus. This is the function they were using to open new windows
Code:
var newwindow;
function poptastic(url)
{
   newwindow=window.open(url,'name','height=400,width=200');
   if (window.focus) {newwindow.focus()}
}
Hope that helps. I don't know much about functions so that's about it for me.

Ruth