Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2011-10-17
4
Medium Priority
?
296 Views
Last Modified: 2012-05-12
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

0
Comment
Question by:bbdesign
  • 2
  • 2
4 Comments
 
LVL 38

Expert Comment

by:Tom Beck
ID: 36981455
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
 

Accepted Solution

by:
bbdesign earned 0 total points
ID: 36982326
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
 
LVL 38

Expert Comment

by:Tom Beck
ID: 36983248
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
 

Author Closing Comment

by:bbdesign
ID: 37013467
Found problem on my own.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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…
Suggested Courses

581 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