Popup on link, clicking link causes java-script error

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mjt
Beginner
Beginner
Posts: 4
Joined: Fri Mar 12, 2004 1:18 am

Popup on link, clicking link causes java-script error

Post by mjt »

Need fast help please,

I switched from v3 to v5.

My menu uses onmouseover=popup("home") AND onmouseout=popdown() to open/close the menu when on the link.

However, now if I click the link itself, I get a javascript error, if I click a menu item in the menu I do not get an error. This is sort of urgent...

Here is a sample (click on HOME) to see, it may be fixed later or I may switch back to the old version if no replies...

http://www3.americanradiology.com/pls/web1/wwmain.home

Thanks,
Meyer
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

It works okay for me in Safari. I don't know javascript, maybe one of the moderators will show up.

As for your menu data, I have these suggestions.

1. missing closing ;
screenposition="center"

2. Good idea to end all these ; before " and remove the double ;; in all of them. separatorsize=1 is repetition, place it once above in the main syles. The url doesn't look right, how about url=/wwwmain.html;

aI("text=Go to the ARS Home Page;url=wwmain.home;;separatorsize=1")

Can't remember is itemwidth needs quotes or not.

Are you sure you need open close js? Maybe you only needed it with version 3?

maz
mjt
Beginner
Beginner
Posts: 4
Joined: Fri Mar 12, 2004 1:18 am

MORE INFORMATION

Post by mjt »

I have new information as I have been trying to resolve this,

I only get the javascript error when:

I click on "services" or "scheduling" AND

I keep the mouse over the same link so when the new page loads the menu pops up just after it loads....

I do not get the error if:

1)I click on another link that pop's up a menu

or

2)I move the mouse after clicking one of those two links?
mjt
Beginner
Beginner
Posts: 4
Joined: Fri Mar 12, 2004 1:18 am

Even more info

Post by mjt »

Please read this from top to bottom, I keep getting more info.

Now I see the only two pages with this behavior are the 2 pages that contain a select list on the page.

Looking for the cause/solution.

Thanks,
Meyer
mjt
Beginner
Beginner
Posts: 4
Joined: Fri Mar 12, 2004 1:18 am

Resolved

Post by mjt »

Upgrading my milonic menu files to 5.06 (the latest version) corrected the issue of select lists causing the error.

This is now resolved.

Thanks
Post Reply