Results 1 to 3 of 3

Thread: Source code not working in IE explorer

  1. #1
    Join Date
    Jun 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Source code not working in IE explorer

    I have designed a webpage with the anylinkmenu.js found on this site and it works fine with Firefox but not with IE. I looked through the forum to find a problem similar to my own but had no success. here is a link to my site...

    Link

    I am getting the errors:" 'divclass' is null or not an object " and "Expected identifier, string or number."

    I am very new to web design and need all the help I can get.

    Thanks,

    Garrett

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In your menucontents.js file you have:

    Code:
    var anylinkmenu2={divclass:'anylinkmenu', inlinestyle:'width:150px; background:#000000', linktarget:'_parent',} //Second menu variable. Same precaution.
    Scroll the code block all the way to the right. See the highlighted red comma near the end? That's a technical syntax error. Most browsers will error correct for it. But IE 8 in quirks mode, and all earlier IE browsers regardless of mode will not error correct it. Get rid of that.

    That's the:

    "Expected identifier, string or number."
    error and it actually comes first. The second one about the divclass is caused by the first. So correct that extra comma by getting rid of it and see what happens.

    There could also be other problems. But that will at least get it working.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    gmorris24 (06-18-2010)

  4. #3
    Join Date
    Jun 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Amazing!

    It is amazing how the tiniest little thing can throw off an entire script...

    Thank you so much for the help!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •