var xmlHttp = createXmlHttpRequestObject();
function createXmlHttpRequestObject()
{
var xmlHttp;
// if running Internet Explorer
if(window.ActiveXObject)
{
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"
} catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.
} catch (E) {
xmlHttp = false;
}
}
}
// if running Mozilla or other browsers
else
{
if(!xmlHttp && typeof ActiveXObject == "undefined")
{
try {
xmlHttp = new XMLHttpRequest();
} catch (e) {
xmlHttp = false;
}
}
}
// return the created object or display an error message
if (!xmlHttp)
{
alert("Error creating the XMLHttpRequest object.");
}
else
{
return xmlHttp;
}
}
this is a website for the basic and advanced programmers cakePHP and other php frameworks functionality is described and some experienced php programmers are communication through this php forum site,
Sunday, May 23, 2010
ajax object xmlHttpRequest and xmlHttpResponse
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment