Edit: It looks like the line number in Internet Explorer is correct in this case. This is apparently a common problem with Internet Explorer 8. There is a potential solution here: Ajax works in some browsers, not in others .
Here is the relevant piece of code:
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; }}}
Unfortunately, the line numbers in Internet Explorer are not always accurate, as they are based on your own internal serialization of your code. The error message probably comes from another line (hopefully near line 59).
I would check the places where you call the method on an object, which for any reason can be set to different values.
source share