Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected call to method or property access in IE7 and IE8

I am using jquery-1.3.2.min.js in my project. My application is working fine in all browsers except IE7 and IE 8. It throws following error.

SCRIPT65535: Unexpected call to method or property access. jquery-1.3.2.min.js, line 12 character 2305

I have been looking for a solution but didn't get any proper solution. please help me to resolve this issue.

Thanks,

Atul Patel.

like image 221
Atul Patel Avatar asked Dec 21 '22 03:12

Atul Patel


1 Answers

I have experienced this error too using jQuery 1.7.1.

The error was caused by myself! I used .text("foo") on an inputfield that used to be a <span>. So when I changed .text("foo") to .val("foo"), everything worked.

To find out what was causing the error, I started debugging, checking the callstack in the console everytime I stepped backwards.

like image 133
Techek Avatar answered Jan 14 '23 11:01

Techek