A
Anat
Hi,
When I use the following function
function SyncHTTPRequest(strURLWithParams)
{
var oXMLHttp;
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
oXMLHttp = new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
oXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
}
if (oXMLHttp)
{
oXMLHttp.open("GET",strURLWithParams,false)
oXMLHttp.send("a")
}
return oXMLHttp.ResponseText;
}
the oXMLHttp.ResponseText returned in Mozilla is always NULL or
undefined, whereas in IE it works fine.
Am I missing something?
Thanks, Anat.
When I use the following function
function SyncHTTPRequest(strURLWithParams)
{
var oXMLHttp;
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
oXMLHttp = new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
oXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
}
if (oXMLHttp)
{
oXMLHttp.open("GET",strURLWithParams,false)
oXMLHttp.send("a")
}
return oXMLHttp.ResponseText;
}
the oXMLHttp.ResponseText returned in Mozilla is always NULL or
undefined, whereas in IE it works fine.
Am I missing something?
Thanks, Anat.