Unsafe Posted January 21, 2007 Share Posted January 21, 2007 Hello,I have some javascript to open and close my drop down menu, however the code works in Firefox but not Internet Explorer and gives me the error "'quick_links[...].0' is null or not an object".[code]function SideMenu(id){ if (Element.visible(id) != true) { for (var ii = 0; ii < quick_links.length; ii++) { if (Element.visible(quick_links[ii][0]) == true) { Effect.toggle(quick_links[ii][0], 'blind'); } } Effect.toggle(id, 'blind'); } else { Effect.toggle(id, 'blind'); } }[/code]Thanks,Unsafe Quote Link to comment Share on other sites More sharing options...
mainewoods Posted January 22, 2007 Share Posted January 22, 2007 where is the 'quick_links[...].0' array created? You probably have a browser compatability issue where it is created. For instance, if you do it at page load and the browser doesn't like one of the statements there, then it won't execute any of the rest of the statements there and objects that were supposed to be created would not be created. When you later try to use those objects then you will get that message. Quote Link to comment Share on other sites More sharing options...
fenway Posted January 22, 2007 Share Posted January 22, 2007 And where did Element and Effect come from? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.