I purchased Pro Ajax and downloaded the zxml.
js library for use in one my applications. I have run into a problem posting data to a java servlet that sits behind an apache 1.3 ssl layer, using IE 6.0 SP2. When SSL3 is selected in IEâs advanced options, the AJAX request does not make it to the java servlet. The post request should return a string representation of xml, but the text is empty. However, when I run the browser with SSL3 unchecked (SSL2 is checked), I run into no issues. In addition, if I add a directive to apache to not use SSL3 (using IE default settings), the AJAX calls work fine. I also confirmed the AJAX calls are being made using the Msxml2.XMLHTTP.5.0 object.
I was wondering if anyone has heard of this issue or something similar and have any suggestions. I have included some of the client source code I am using. Thanks in advance.
Regards,
Elliott Gonshor
function sendPostRequest(fnFunction, form, oXmlHttp ) {
var oForm = form;
var sBody = getRequestBody(oForm);
oXmlHttp.open("post", oForm.action, true);
oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
oXmlHttp.onreadystatechange = oXmlHttp.onreadystatechange = fnFunction;
oXmlHttp.send(sBody);
}
/
/* ajax call to get batch info. The oXmlHttp.responseText is a string returned
in a xml format */
function setBatchSummary(rowIx, action)
{
highlightRow( rowIx );
document.forms[0].hdnUserParm1.value=rowIx;
document.forms[0].hdnUserAction.value=action;
oXmlHttp = zXmlHttp.createRequest();//calls zxml.
js library
var loadContent = new Function(
"if (oXmlHttp.readyState == 4) { " +
" var tbodycontent = document.getElementById(\"eventContent\"); " +//not used
" setBatchSummaryFields(oXmlHttp.responseText); }");//the call that works with responseText
sendPostRequest(loadContent, document.forms[0], oXmlHttp);
}