• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 926
  • Last Modified:

Firefox Form in IFRame Submit Problem


I'm having a problem getting Firefox to submit a form that is contained in an IFrame.  Works fine in IE.  I believe the code is Firefox compliant - but obviously I'm wrong!


formframe is the IFrame id

1 Solution
You have a few choices:
1) give the frame a name (name="formframe") and reference it from the frames collection: eg: window.frames["formframe"]
2) You can use the ID with document.getElementById("formframe") but then getting the window reference requires a little more work.  The contentWindow (eg: document.getElementById(...).contentWindow) should work in most cases, but older version of Mozilla browsers like NS6 may require using contentDocument

Apple has an article on getting the reference, but I think going through the frames collection should suffice: http://developer.apple.com/internet/webcontent/iframe.html
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now