Object not valid error
Date: 12/20/06
(Computer Geeks) Keywords: browser, java
Hey guys,
I'm trying to build a page with two forms. The first form is located in an invisible layer, and it comes to view only when the user clicks the submit button of the second form. The button in the first form, which is not a submit button, uses a javascript like document.getElementById("commentform").submit(); to submit the second form.
However this is where something happens and I don't know what. The browser throws an error like "Object doesn't support this property or method." And it gives as culprit the script I typed above. The only method or function that I can see here is submit(), but that is not an exotic function, and the browsers I tried it in are all latest model. How is it possible that the object doesn't support this method???
Source: http://community.livejournal.com/computergeeks/1012524.html