JackFruit3D
01-16-2003, 09:15 PM
OK...
i feel like a noob asking this but my head hurts too much and i need a quick solution.
i have the following script:
function checkdata(){
<!--
// Check that search field has been filled in
if (document.emailform.Confirmation.value == "") {
alert("Please Fill in the Email Confirmation Field");
document.emailform.Confirmation.focus();
return false;
}
else{
document.emailform.submit();}
return true;
}
//-->
</script>
and i'm getting an error... object doesn't support this property or method... in regards to the submit() line...
what stupid thing have i forgotten???
the script is activations witht he following
<input type="button" name="submit" value="Submit" onclick="checkdata(); document.emailform.FormAction.value = 'submit';" class="buttons">
i feel like a noob asking this but my head hurts too much and i need a quick solution.
i have the following script:
function checkdata(){
<!--
// Check that search field has been filled in
if (document.emailform.Confirmation.value == "") {
alert("Please Fill in the Email Confirmation Field");
document.emailform.Confirmation.focus();
return false;
}
else{
document.emailform.submit();}
return true;
}
//-->
</script>
and i'm getting an error... object doesn't support this property or method... in regards to the submit() line...
what stupid thing have i forgotten???
the script is activations witht he following
<input type="button" name="submit" value="Submit" onclick="checkdata(); document.emailform.FormAction.value = 'submit';" class="buttons">