Javascript error on page, only occurs with IE8, trying to understand error message and line numbers

Posted on 2011-10-17
Last Modified: 2012-05-12
Here is a test version of my page:

Once you load it in IE8, none of the Javascript functionality works (for example, clicking the main tabs: Account Info, Medical History, etc.).

Attached is the Javascript error message. However, I have never understood how to correspond these error messages to the source code. If I pull up the source code and look at line 121, that is:


...which seems benign. If I turn on IE8 Developer Tools, it tells me the problem is somewhere in the jQuery library! So that obviously isn't it (I hope).

No other browser seems to have an error on this page. I would really appreciate any help figuring out what these errors are actually telling me.

Thank you!
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C)
Timestamp: Mon, 17 Oct 2011 17:56:29 UTC

Message: Object doesn't support this property or method
Line: 121
Char: 3
Code: 0

Open in new window

Question by:bbdesign
    LVL 38

    Expert Comment

    by:Tom Beck
    More likely it's something you are sending to jquery-1.6.4.min.js that perhaps has a syntax error in it by IE8's definition at least. IE is more particular about syntax than other browsers.

    Curious, if you commented out line 120 which has updatetabs(); on it if you would regain at least some functionality under IE8. If so, that would help to isolate the problem.

    A long shot perhaps, but maybe a different version of jquery.min.js or even the full jquery instead of a min version.

    Accepted Solution

    Ah, I found the problem. You mentioned the line 120 with updatetabs();, but the error message said 121. Now I notice this:


    I replaced with this:

    var numselected=$(".selectedmembers:checked").length;

    Forgot to put the var! Thanks for looking.
    LVL 38

    Expert Comment

    by:Tom Beck
    Only IE would consider that a syntax error.

    Glad you found it. That's too much javascript for me to go through in a reasonable amount of time.

    Author Closing Comment

    Found problem on my own.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 for Beginning Beginners

    Are you looking for an efficient introduction to HTML5? Have you tried other HTML5 courses and found them too complex? Do you need just the basics of HTML5 to use with Wordpress or other content management system? If you said yes to any of these questions, this course is for you.

    Suggested Solutions

    How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now