Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33
Script conflict
Poster: John
Dated: Monday March 3 2003 - 23:25:37 GMT
OK, my turn...
Adding the menu calls to my site at http://tiggrsuccess.com/ blows away the onUnload in the body tag. If I comment out the menu calls it works fine.
Note that the cookie will only allow the onUnload to function once per session.
Thanks.
Poster: kevin3442
Dated: Monday March 3 2003 - 23:38:27 GMT
Quick two-cents John...
In
Code:
onUnload="popup()"
I'm guessing it's the name of the function you're calling that's the root of the problem. mmenu.js also has a function called popup(), which is probably overriding your cookie-related function when you load mmenu.js. Can you rename your own popup() to something else?
Kevin
Poster: John
Dated: Tuesday March 4 2003 - 13:51:45 GMT
Hi Kevin -
Heh - knew there was a reason for this headache My fault for not looking far enough. Duh...
Thanks.
Poster: kevin3442
Dated: Tuesday March 4 2003 - 18:00:20 GMT
So... is the headache because you smacked yourself in the head when you read the cause? Just goes to show that it can happen even to the best of us. Glad to help.
Kevin
Poster: John
Dated: Tuesday March 4 2003 - 18:03:06 GMT
That's the main reason for the headache, although there's something wrong in my office that made it even worse so I'm now working from home (not to mention CSS is about to give me another one!). Already made the change and you were right.
Thanks again.