dynamic menu creation with js works in ie7 but not ie6

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
tmakaro
Advanced
Advanced
Posts: 25
Joined: Thu Jan 26, 2006 10:43 pm

dynamic menu creation with js works in ie7 but not ie6

Post by tmakaro »

Hi I am getting the following error in ie6 while ie7 and firefox works fine. Please help.

Line: 21
Char: 28995
Error: Object required
Code: 0
URL: http://www.makaro.com/milonic/test.html

Try it for yourself at: http://www.makaro.com/milonic/test.html
just hover over a menu using ie6 and the javascript error should appear.

Troy
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The latest version of the menu should have a fix for the IE6 error.

You are also running Pre Release so that will need updating
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

The current version of the menu is 5.770, with 5.771 on deck. You'll need to be at 5.770 for any further assistance in the forum.
John
tmakaro
Advanced
Advanced
Posts: 25
Joined: Thu Jan 26, 2006 10:43 pm

Post by tmakaro »

Wow, its taken exactly one month to get the company I work for to renew our subscription. I now have the newest version and the javascript error is gone but it still doesn't work.

Take a look at http://www.makaro.com/milonic/test.html
Hover over submenu1 and you will see the first menu option is 'google'. If you click the google option it should take you to the google main web page. It does for ie7 and firefox but not ie6.

In test.html you will see a clickit function that has in it:
window.location = "http://www.google.com";

now strangely if I put an alert("got here"); before or after the window.location code, it starts working in ie6???

Troy
tmakaro
Advanced
Advanced
Posts: 25
Joined: Thu Jan 26, 2006 10:43 pm

Post by tmakaro »

Its been 4 days now without a response. I'm sure you guys are busy but are you at least aware of this problem I am having? It's holding up our release.
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Why can't you just use the menus's ability to link to urls, using the url= property?

Seems very odd that you would go to the trouble to create a function to do the same thing.

Try changing this:

Code: Select all

aI( "text=Google;windowTarget=www.google.com;windowType=thisWindow;windowWidth=800;windowHeight=600;clickfunction=clickit();" )
To this:

Code: Select all

aI( "text=Google;target=google;targetfeatures=width=800,height=600;url=http://www.google.com )
tmakaro
Advanced
Advanced
Posts: 25
Joined: Thu Jan 26, 2006 10:43 pm

Post by tmakaro »

Granted the example I gave you was very simple and does not need to use clickFunction. There are however reasons to use the clickFunction sometimes.

I think I can work around this problem by using your suggestion for some of the links. I will let you know how it goes. Thanks
Post Reply