bookmarks of the day 10/14/2010
Posted by Toshi | | Posted On Oct 14, 2010 at 11:30 PM
-
why am I getting xmlhttprequest.status=0? - JavaScript / DHTML / AJAX - Annotated
-
- if (window.XMLHttpRequest) {
- //for firefox, opera and safari browswers
- var xmlHttp = new XMLHttpRequest();
- }
- if (typeof XMLHttpRequest == "undefined")
- XMLHttpRequest = function () {
- try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
- catch (e) {}
- try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
- catch (e) {}
- try { return new ActiveXObject("Msxml2.XMLHTTP"); }
- catch (e) {}
- //Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant
- throw new Error("This browser does not support XMLHttpRequest.");
- };
- /*@cc_on @if(@_jscript)
- var xmlHttp=new ActiveXObject("Microsoft.XMLDOM");
- xmlHttp.async="false";
- xmlHttp.load("sellers.xml");
- @else */
- xmlHttp.open("GET","sellers.xml",false);
- xmlHttp.send(false);
- var xmlDoc= xmlHttp.responseXML;
- /*@end
- @*/
-
Posted from Diigo. The rest of my favorite links are here.