I have run Fiddler on this and I see that the file that processes the request is finishing and returning text.
Here’s my AJAX code:
[CODE]var receiveReq = getXmlHttpRequestObject();
var mTimer;
//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
if (window.XMLHttpRequest) { // Mozilla, Safari,…
return new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE
try {
return new ActiveXObject(“MSXML2.XMLHTTP.3.0”);
} catch (e) {
try {
return new ActiveXObject(“Microsoft.XMLHTTP”);
} catch (e) {}
}
}
} //end of function getXmlHTTPRequestObject
//Gets the current hours from the server
function SaveModule(SecID) {
//alert(‘Made it to Save Module’);
var TextURL = “/RUN_UpdateModuleAJAX.asp”;
var TextParameter = “ModuleMenu” + SecID + “=” + document.getElementById(‘modulemenu’ + SecID).value + “&CategoryMenu” + SecID + “=” + document.getElementById(‘categorymenu’ + SecID).value + “&Field1=” + document.getElementById(‘Sect’ + SecID + ‘Field1’).value + “&Field2=” + document.getElementById(‘Sect’ + SecID + ‘Field2’).value + “&PageID=” + document.getElementById(‘Sect’ + SecID + ‘PageID’).value+ “&SecID=” + SecID;
//alert(‘Text URL: ‘ + TextURL + ‘ Text Param: ‘ + TextParameter);
//alert(‘Text Parameter Length: ‘ + TextParameter.length);
if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
receiveReq.open(“POST”, TextURL, true);
receiveReq.setRequestHeader(“Content-type”, “application/x-www-form-urlencoded”);
receiveReq.setRequestHeader(“Content-length”, TextParameter.length);
receiveReq.setRequestHeader(“connection”, “close”);
receiveReq.onreadystatechange = UpdateSection();
receiveReq.send(TextParameter);
}
} //end of function Sav eModule
//Function for handling the return of the Save Module
function UpdateSection() {
//alert(‘Made it to UpdateSection’ + SecID)
alert(‘ReadyState: ‘ + receiveReq.readyState);
if (receiveReq.readyState == 4) {
var SectionDiv = ‘iLink_Section’ + SecID;
var xmldoc = receiveReq.responseText;
SectionDiv.innerHTML = xmldoc;
}
//alert(‘Section to update: ‘ + SectionDiv);
//MM_showHideLayers(‘iLink_PageOverlay’,”,’hide’,’iLink_ModulePicker’,”,’hide’)
}//end of function UpdateSection
I’ve used this exact same function other times, with no problems. With this one, the ReadyState (you can see my alert) stays at 1 and never changes. Anything I’m just missing?
Thanks for the extra eyes!