Abd
10-28-2003, 02:45 PM
Hi All,
pls I need help on how to run multiple JavaScript, I tried my bellow code, it actually runs(validate) but as soon as I click the Okay button of the Dialog Box it submit the form.
So what I really want is how to use If Construct for testing Functions, see bellow code;
<script language = "Javascript">
function Submittest()
{
Submit();
ValidateForm();
}
</script>
I want to test Submit() [Using IF statement.....] if it returns false, the Script should not allow me to submit the form
pls I need help on how to run multiple JavaScript, I tried my bellow code, it actually runs(validate) but as soon as I click the Okay button of the Dialog Box it submit the form.
So what I really want is how to use If Construct for testing Functions, see bellow code;
<script language = "Javascript">
function Submittest()
{
Submit();
ValidateForm();
}
</script>
I want to test Submit() [Using IF statement.....] if it returns false, the Script should not allow me to submit the form