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 Link to comment https://forums.phpfreaks.com/topic/35135-script-works-in-firefox-but-not-ie/ 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. Link to comment https://forums.phpfreaks.com/topic/35135-script-works-in-firefox-but-not-ie/#findComment-165960 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? Link to comment https://forums.phpfreaks.com/topic/35135-script-works-in-firefox-but-not-ie/#findComment-166662 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.