Unexpected call to method or property access in IE7 and IE8

Atul Patel picture Atul Patel · Jan 19, 2012 · Viewed 8.6k times · Source

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.

Answer

Techek picture Techek · Mar 27, 2012

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.