I have built a form validation script that on a "onsubmit=checkForm() return false;" the script validates the form and submits it on a successful validation
Code: Select all
function checkForm(){
theform = document.forms[0];
// validation
if(!error)
theform.submit();
}
however on this particular form...
1. the html is actually being included via php.
2. there are other javascripts being included (however, no errors are being reported and are not related to the form). This includes some ajax scripting.
the validation function executes as it should as trying to submit an empty form will bring up validation error alerts without script errors. but on successfull validation the debugging in firefox shows a
in the consoletheform.submit is not a function
i did a
Code: Select all
alert(theform.name);
is there any policy concerning this that needs to be followed? I do not see a reason why there would be such an error if the functions recognises the form
feyd | it's
Code: Select all
not [code="..."] :P[/color]