Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3987100
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:05:38+00:00 2026-05-20T06:05:38+00:00

Hey, I have been pulling my hair out with this error I am having

  • 0

Hey, I have been pulling my hair out with this error I am having on this site.

I am getting the dreaded Object expected error on line 1, character 21 in IE6 and IE7 only. I just wondered if anyone had any idea what this could be related to. I know about the whole trailing commas problem so I am very careful with that.

Any ideas will be much appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:05:38+00:00Added an answer on May 20, 2026 at 6:05 am

    We fixed the “Object expected” error in IE, so to answer the question in your comments:

    The problem is in your HTML.

    You have this HTML, once for each tab:

    <div class='tab' id='introduction'>
        <h2 id='introduction'>Introduction</h2>
    </div>
    
    <div class='body' id='introduction' style='display:block'>
    

    The problem is that you’re specifying two elements with id='introduction'.

    For various reasons, you should not do that:

    • It’s causing validation errors.

      Line 37, Column 27: Duplicate ID introduction.
      Line 36, Column 39: The first occurrence of ID introduction was here.

    • It’s breaking your tabs in IE7.
    • There are also other reasons, but they aren’t important here.

    If I change it to (for example):

    <div class='tab' id='introduction'>
        <h2 id='introduction'>Introduction</h2>
    </div>
    <div class='introduction body' style='display:block'>
    

    (remember to change all four instances in the same way)

    And if I change your JS to this (for example), it works:

    // Show selected
    Spark('.' + currentTab)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all i have been trying to figure out why i am getting this
Hey all, I'm pulling my hair out on this one. I've checked all my
Hey, have been trying to work this out for last day or so but
Hey all, i have been trying for a few minutes on this problem and
hey people I'm new at jquery and i have been trying to figure this
Hey this might be a simple question, but i have been stumped on it
Hey guys so I have been trying to figure out why my update function
Hey, I have been able to figure out what IE8 hates (show(index)), but not
Hey, I have been trying to switch my code from using an ie object
Hey ya'll I have this site here http://www.taranmarlowjewelry.com/ and in the top right corner

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.