Using jquery $.ajax on window.onerror in ie
<p>I got a script going on ff and chrome (don't care about safari) where when there is a javascript error it send an email.</p>

<p>It works on FF &amp; chrome.</p>

<p>On ie8 I see the console.log or alert I added in the success of the ajax call but the call itself is never made, this makes me crazy that it actually goes into the success function</p>

<pre><code>window.onerror = function (msg, url, line) {

    $.ajax({
        type:"GET",
        url:"jserrorhandler.php",
        data:"message="+msg+"&amp;url="+url+"&amp;line="+line+'&amp;from='+settings.from+"&amp;website="+settings.website,
        success: function(){
            if(window.console) console.log("Report sent about the javascript error")
        }
    })
    return true;
}
</code></pre>
