Java Reference
In-Depth Information
}
var options = getBasicOptions();
options.onSuccess = checkUsername_callBack;
new Request(options).send(“username=” + userValue);
}
function checkUsername_callBack(text, xml)
{
var userValue = $(“username”).value;
if (text == “available”)
{
alert(“The username “ + userValue + “ is available!”);
}
else
{
alert(“We're sorry, but “ + userValue + “ is not available.”);
}
}
function checkEmail()
{
var emailValue = $(“email”).value;
if (emailValue == “”)
{
alert(“Please enter an email address to check!”);
return;
}
var options = getBasicOptions();
options.onSuccess = checkEmail_callBack;
new Request(options).send(“email=” + emailValue);
}
function checkEmail_callBack(text, xml)
{
var emailValue = $(“email”).value;
if (text == “available”)
{
alert(“The email “ + emailValue + “ is currently not in use!”);
}
else
{
alert(“I'm sorry, but “ + emailValue + “ is in use by another user.”);
}
}
function request_onfailure(request)
{
Search WWH ::




Custom Search