Z
zdrakec
The relevent code (it's a basic example):
var XMLHTTP = GetXMLHTTP();
if(XMLHTTP != null)
{
XMLHTTP.open("GET","default.aspx");
XMLHTTP.onreadystatechanged = stateChanged;
XMLHTTP.send(null);
} //end if(XMLHTTP != null)
function stateChanged()
{
if(XMLHTTP.readyState == 4 && XMLHTTP.status == 200)
{
window.alert(XMLHTTP.responseText);
} //end if
}//end function stateChanged
When I run this in the browser, I get a javascript exception for the
"XMLHTTP.send(null);" line:
"Object does not support this property or method."
Help...?
Thanks,
zdrakec
var XMLHTTP = GetXMLHTTP();
if(XMLHTTP != null)
{
XMLHTTP.open("GET","default.aspx");
XMLHTTP.onreadystatechanged = stateChanged;
XMLHTTP.send(null);
} //end if(XMLHTTP != null)
function stateChanged()
{
if(XMLHTTP.readyState == 4 && XMLHTTP.status == 200)
{
window.alert(XMLHTTP.responseText);
} //end if
}//end function stateChanged
When I run this in the browser, I get a javascript exception for the
"XMLHTTP.send(null);" line:
"Object does not support this property or method."
Help...?
Thanks,
zdrakec