javascript Programming Glossary: isvalidform
Javascript and AJAX, only works when using alert() http://stackoverflow.com/questions/1267454/javascript-and-ajax-only-works-when-using-alert XMLHTTP return xmlhttp function validateRegForm reg var isValidForm true var warningIcon for later in case we want to use an icon.. warningIcon 'Username is already taken br ' isValidForm false else if u_username.value.length 4 errorDiv.innerHTML warningIcon.. 'Username must be more than 4 characters long br ' isValidForm false else if u_username.value.length 35 errorDiv.innerHTML..
How do I cancel form submission in submit button onclick event? http://stackoverflow.com/questions/4227043/how-do-i-cancel-form-submission-in-submit-button-onclick-event You are better off doing... form onsubmit return isValidForm If isValidForm returns false then your form doesn't submit... better off doing... form onsubmit return isValidForm If isValidForm returns false then your form doesn't submit. You should also..
|