Feedback on: irt.org FAQ Knowledge Base Q932
Comments:
I occasionally have problems submitting forms with the document.FormName.submit() command. The error I get says "Object does not support method or property." Sometimes I get this error because the name of one of the form elements (usually the submit button itself) is "submit". Changing the name to something other than "submit" fixes the problem.
Comments:
document.form['myForm'].submit;
should be
document.forms['myForm'].submit();
Michel
Worth:
Worth reading
Length:
Too short
Technical:
Just right
Comments:
good snipet. i searched around for the better half of a day trying to figure out this form.submit business. still have a problem with the an error message of "transfer interrupted", but it is functional.
Worth:
Worth reading
Length:
Just right
Comments:
We ha some problems with netscape and submit. The submit was actioning a url but the form had no 'input'. Adding a dummy 'hidden' input field sorted the problem.
Worth:
Very worth reading
Comments:
Like Todd I had the same problem - until I read his comment I was lost for a solution.
Worth:
Worth reading
Comments:
I want to point out that if you are using an Onclick event from a link to trigger a function that submits the form and you do not return false the onclick then your form will not submit (IE5).
Worth:
Very worth reading
Length:
Technical:
Comments:
Todd's comments are on the money. I had the same problem until I renamed the button on the form to something other than "submit".