javascript submit() in iframe

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

javascript submit() in iframe

Post 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?
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Post by SBukoski »

Never mind. I was stupid...

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