Hi,
I have written a really simple script that is called on submit on a web form.
Checkname does an ajax call to check if a username is taken in a database, if it is free the field check is set to "true".
When I submit the form the alert pops up with Yep, but then I get an error on submit line.
Webpage error details
Message: Object doesn't support this property or method
Here is the function
function checkusername() {
checkname(document.register.username.value);
if (document.register.check.value=='true'){
alert('yep');
document.register.submit();
}else{
alert('Please check the username is free')
}
}
Any ideas what can be wrong (the form IS called register)???
Many Thanks
Richard


Reply With Quote

Bookmarks