function ajax_LookUpAcceptedCustomer(ClientEmail)
{
var xhr=null;
var myUrl = "http://localhost/LookUpAcceptedCustomer.php?ClientEmail=";
myUrl = myUrl + ClientEmail;
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.onreadystatechange = function() { LookUpAcceptedCustomer_Result(xhr); };
xhr.open("GET", myUrl, true);
xhr.send(null);
}
function LookUpAcceptedCustomer_Result(xhr)
{
var docXML= xhr.responseXML;
var items = docXML.getElementsByTagName("RS")
if ( items.item(0).firstChild.data == 0 )
{
return false;
}
else
{
return true;
}
}
Partager