rem: var xml = http_request.responseXML; if (!xml || !xml.documentElement ) { YAHOO.log("Detected failed responseXML"); if (window.ActiveXObject ) { YAHOO.log("Parsing ActiveX"); xml = new ActiveXObject( "Msxml2.DOMDocument" ); xml.loadXML( http_request.responseText ); YAHOO.log("Parsed " + typeof(xml.documentElement)); } else if ( DOMParser ) { xml = new DOMParser().parseFromString(http_request.responseText, "text/xml" ); } new_http_request = new Object(); new_http_request.responseXML = xml; new_http_request.responseText = http_request.responseText; http_request = new_http_request; } YAHOO.log("Starting callback"); 
context:       var alertContents = function() {        if (http_request.readyState == 4) {          if (http_request.status == 200) {            YAHOO.log("AJAX request success status: " + http_request.status);            var xml = http_request.responseXML; // First try to use the auto-parsed value            if (!xml || !xml.documentElement ) { // The browser failed, but we think we're smarter              YAHOO.log("Detected failed responseXML");              if (window.ActiveXObject ) { // Internet Explorer, use the Msxml COM object                YAHOO.log("Parsing ActiveX");                xml = new ActiveXObject( "Msxml2.DOMDocument" );                xml.loadXML( http_request.responseText );                YAHOO.log("Parsed " + typeof(xml.documentElement));                }               else if ( DOMParser ) { // Use the gecko builtin if it's available.                xml = new DOMParser().parseFromString(http_request.responseText, "text/xml" );              }              new_http_request = new Object();              new_http_request.responseXML = xml;              new_http_request.responseText = http_request.responseText;              http_request = new_http_request;            }            YAHOO.log("Starting callback");            callback.success(http_request);            YAHOO.log("AJAX callback concluded");            }           else {            YAHOO.log("AJAX request error status: " + http_request.status);            }          }        }
meta: 13	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/13/dea037c2055aa9d8061c8d52b4194c2380d2a5af/rsf.js/buggy/rsf-web/templates/src/webapp/content/js/rsf.js