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

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

JavaScript and AJAX Forum

Hiermenus and Popup Window conflict

 2:13 am on Mar 8, 2003 (gmt 0)

I have a site that I've developed that uses HierMenus for the submenus of the pages. On the home page I have a popup window that uses JS and loads in the body tag

<body bgcolor="#FFFFFF" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" background="/images/navbar/bg.gif" onUnload="closePopWin()" onLoad='openPopWin("http://www.midwestclinic.org/perf_popup.html", 400, 200, "", 20, 200)'>

My problem is that the popup window loads but the HierMenus don't work on the page then. To see the page, go here: <snip>

Thanks for any help.

[edited by: korkus2000 at 2:33 am (utc) on Mar. 8, 2003]
[edit reason] no urls please [/edit]



 2:36 am on Mar 8, 2003 (gmt 0)

You cannot have anything in the onload tag. You need to find another way of fulfilling this requirement. The way I have done this in the past is to add a function call in the hiermenus js file. I would put the pop up call in a function that gets called from the original function fired off in the start of the hiermenus js.


 2:48 am on Mar 8, 2003 (gmt 0)

Thanks Korkus. I knew the onload was the problem. Any code samples you can refer me to on this? I'm really a novice when it comes to JS.


 2:52 am on Mar 8, 2003 (gmt 0)

Unfortunately I don't I haven't used hiermenus in over a year. I bet someone else has the fix though. It is a common problem.


 2:40 pm on Mar 10, 2003 (gmt 0)

Anyone know the fix for this problem?


 2:54 pm on Mar 10, 2003 (gmt 0)

This weekend I found a new JS that you place in the body section of the page. I removed the onload from the body tag and everything works fine. Found the script on [javascriptkit.com...]

Thanks for your help Korkus.


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