Friday, September 7, 2012

Solution when submit method throws "object doesn't support this property or method" error.

Thank God, for the internet and Google.  I was able to solve this problem right away.  Somehow if you use the code: document.formname.submit() in javascript you will get an error when you named another object as 'submit'.

I was able to change the other objects name and everything was fine.  On my case the object in conflict is the submit button, that usually by default named as 'submit'.  I only change it and everything worked perfectly.

I saw the solution on the first result google gave me on the list.  The link to the solution is here: http://it.toolbox.com/wiki/index.php/Why_does_form_submit_method_throws_%22object_doesn't_support_this_property_or_method%22_error%3F

No comments:

Post a Comment