If you have a Javascript function, doing some form validation for example, and at the end, it will submit the form, and it suddenly stops working, throwing up an error message in the console box that reads "submit is not a function" then you have probably mis-named one of your form fields.
The most common being that you've accidentally named a submit field as 'submit'.
<input type="submit" name="submit" value=" save ">
This is where the problem is. When you make a call to submit the form using:
document.getElementById("aform").submit();
It will attempt to call the submit() function of the
<input> field and not the
<form> of the same name.
resolution inspired from http://www.spiration.co.uk/post/1232tags: javascript html
links: digg this del.icio.us technorati