Suddenly (i.e. after the version 5 update) Chrome is giving the error in the title (above) at seemingly random moments (when I do a local Ajax "get"). Until today, I had never seen this error, and my Ajax code has not changed. It looks like this:
Where is this error coming from? And how do I avoid it?Code:function getAjaxText(content, target, textPath, characters) { nc.http_request = false; // running locally on IE5.5, IE6, IE7 if ((location.protocol=="file:")&&(window.ActiveXObject)) { if (!nc.http_request) try { nc.http_request=new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ nc.http_request=false; } if (!nc.http_request) try { nc.http_request=new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { nc.http_request=false; } } // IE7, Firefox, Safari, Opera... if (!nc.http_request) try { nc.http_request=new XMLHttpRequest(); } catch(e) { nc.http_request=false; } // IE6 if (typeof ActiveXObject != "undefined") { if (!nc.http_request) try { nc.http_request=new ActiveXObject("MSXML2.http_request"); } catch(e) { nc.http_request=false; } if (!nc.http_request) try { nc.http_request=new ActiveXObject("Microsoft.http_request"); } catch(e) { nc.http_request=false; } } if (window.XMLHttpRequest) { // Mozilla, Safari,... if (nc.http_request.overrideMimeType) { nc.http_request.overrideMimeType('text/plain; charset=' + characters); } } if (!nc.http_request) { alert('ERROR: Cannot create an XMLHTTP instance'); return false; } nc.http_request.onreadystatechange = function() { nc.showAjaxText(content, target); } nc.http_request.open('GET', textPath + content, true); nc.http_request.send(null); }
Thanks,
JAS


LinkBack URL
About LinkBacks



Reply With Quote
. 