I'm getting the exception below from Firefox, IE works fine. The code is very similar to your sample:
function init() {
var oReq = zXmlHttp.createRequest();
oReq.onreadystatechange = function () {
if (oReq.readyState == 4) {
// only if "OK"
if (oReq.status == 200) {
alert(oReq.responseText);
}
}
};
oReq.open("GET", "http://localhost:8989/mpc10/LocLoader.jsp", true);
oReq.send();
}
The function above is contained in MpcAjaxLocationLoader.htm and gets called onload.
Error: uncaught exception: [Exception... "Not enough arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "
JS frame ::
http://localhost:8989/AjaxTest/MpcAj...tionLoader.htm :: init :: line 23" data: no]