home       edit & win prizes     members     top editors ranking     editors wanted     editor guidelines     contact duno
search:
   my friends   my profile register  login
How Do You Add A Javascript Button Which Validates The Form And Then Submits It 
email chief editor    last edit: 31 December 1969
 edit this article & win cash prizes




there is no article on this topic yet. create one



0 dunos vote up vote down Franklin date added 31 Dec 1969 send private message to Franklin
http://www.keysolutions.com/notesfaq/administration7.html
pls refer the above link from which you can get all information about your quiry
Thank You
Raj

 reply or leave comment
Franklin
Education: Highschool
Degree: Medicak
Job: DOCTOR
Homepage: ..
country code: India
0 dunos vote up vote down kanna date added 31 Dec 1969 send private message to kanna
Your checkForm function should have the code to validate as well as submit. Your button should be of the type "button" and not submit. If the validation fails make an early exit from the function.

Add the following code in the $$HTMLHead field:


"<SCRIPT LANGUAGE=\"JavaScript\">
function checkForm() {
if (document.forms[0].Name.value == \"\") {
alert(\"You must enter your name\");
return false;
}
document.forms[0].submit();
return true;
}
</script>"
Add this code for a submit button as passthrough HTML or with the HTML style:


<INPUT TYPE="Button" VALUE="Submit" onClick="checkForm(0)">
Now that you've added a special button, you'll have to remove the default one that Domino generates via the FAQ on how to remove the submit button.


 reply or leave comment

Education: University
Degree: M.sc ele
Job: production engineer
Homepage: ..
country code: India

you must register or login
Write comment to this article

the article is How do you add a Javascript button which validates the form and then submits it

your relevant comment

see these articles as well:
How do you add a Javascript button which validates the form and then submits it

or any of these recently updated articles:
Want to make money
editors.php
expert
oldschoolbux.com
john hanson

random article:
other/First-actual-pictures-of-Xbox-360-Arcade-bundle-leaked,-with 9177

IMC International, Inc.