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

Here is a test version of my page:

https://www.interactivehealthpartner.com/mfc_manage-enrolled-members-test.asp

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:

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

...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
URI: https://www.interactivehealthpartner.com/mfc_manage-enrolled-members.asp?editmfc=10

Open in new window

Brad BansnerWeb DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
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.
0
Brad BansnerWeb DeveloperAuthor Commented:
Ah, I found the problem. You mentioned the line 120 with updatetabs();, but the error message said 121. Now I notice this:

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

I replaced with this:

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

Forgot to put the var! Thanks for looking.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom BeckCommented:
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.
0
Brad BansnerWeb DeveloperAuthor Commented:
Found problem on my own.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.