Page 1 of 1

javascript submit() in iframe

Posted: Fri May 28, 2004 1:25 pm
by SBukoski
This is starting to annoy me. I have a page with an iframe in it. The page that is displayed in that iframe has a small piece of javascript on it. Essentially, when the user clicks a link a hidden value is updated and the form should be submitted.

However, when I issue the document.myform.submit(); command from within the iframe, I get the following error:

"Object doesn't support this property or method"

Can I not do a submit like this on a form in an iframe? Am I doing it wrong? Any help?

Posted: Fri May 28, 2004 2:14 pm
by SBukoski
Never mind. I was stupid...

Note to all, make sure you don't name your submit button "submit"! DUH!!