Forum Moderators: open

Message Too Old, No Replies

Menuitem Undefined IE Error

         

ftwb05

10:05 am on Jun 5, 2006 (gmt 0)

10+ Year Member



Rather foolishly (as I don't know much about html or javascript) I tampered with the HALO Dreamweaver template I was using for a site (the global menus) and now in IE every now and then I get an error message in the bottom left of the screen saying "menuitem1 is undefined".
I understand this is a javascript problem, but I've searched loads of websites, and tried loads of solutions, and I still get this intermittant error message!
The only thing I can figure out is that it sometimes depends on whether use you the mouse while loading the pages!
Many thanks in advance!
Rob.

[edited by: DrDoc at 5:48 pm (utc) on June 5, 2006]
[edit reason] removed reference to personal site [/edit]

visionmonster

1:35 pm on Jun 6, 2006 (gmt 0)

10+ Year Member



Here's the scenerio that I'm envisioning:

there is probably a mouseover event on the first top level menu item.

if the menu is dynamically generated say with the onload event, then if the page isn't finished rendering and your mouse moves over the top level menu item it will tell you that the item doesn't exist, but, and I'm assuming...if your mouse doesn't move over the top level menu item until the page is finished rendering, then the page loads fine.

so basically the function needs to check for the existance of the object (menuitem1) before it attempts to display menuitem1

I don't know what the HALO template in dreamweaver is

hope this helps

ftwb05

3:22 pm on Jun 6, 2006 (gmt 0)

10+ Year Member



thats exactly it. If you move your mouse, the IE error appears, but if the mouse is still, its ok. So I guess I should use onload?
Many thanks for your reply.