Jump to content

Script works in Firefox but not IE


Unsafe

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.