Hi,
We use a tool to log JavaScript error on our site, and have noticed several thousand of the following error since integrating Marketo a few months back:
JavaScriptException:
Message: Unable to get value of the property 'indexOf': object is null or undefined,
URL: http://munchkin.marketo.net/142/munchkin.js,
Line: 19
Virtually all of them have been from visitors using IE9, and by using IE9 myself I was able to replicate the error on page load.
The offending line seems to be trying to extract a browser major version number from the jQuery browser object
_MchHlpr.$.browser.version which sometimes seems to be undefined on IE9.
According to the jQuery documentation at
http://api.jquery.com/jQuery.browser/ this property has been deprecated since jQuery 1.3 (and actually removed from the most recent versions).
Is there some other way you can detect browser versions? Or at least wrap some error handling around this?
Cheers,
David Carson
DesignCrowd