All pastes #739183 Raw Edit

Something

public text v1 · immutable
·published 2007-10-16 22:44 UTC
rendered paste body
/* Create the XMLHttpRequest object... */
var http = createRequestObject();
function createRequestObject() 
{
	var xmlHttp;
	var browser = navigator.appName;
	if (window.XMLHttpRequest)
	{
		var xmlHttp = new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		var xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return xmlHttp;
}

/* Send the XMLHttpRequest. */
function ajaxForm(email) 
{
	http.open('POST', 'ajax_check_email.php', true);
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
	http.onreadystatechange = function()
	{
			
		if(http.readyState == 4) 
		{
			bool = http.responseText;
			alert(http.responseText);
			
		}
	}
	http.send("verify=" + email);
	return bool;
}