Firefox Form in IFRame Submit Problem

Posted on 2006-06-06
Last Modified: 2006-11-18

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

Question by:novaworks
    1 Comment
    LVL 5

    Accepted 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:

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    When pages do not download correctly, and you don't know why, the first thing you do is to look at the HTML source code of that page, but not all the downloaded files appear always clearly. If your source includes a javascript that computes the name…
    Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit ( and similar technologies have enjoyed wide adoption, making it possib…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now