tags:

views:

124

answers:

3

Hello,

I have a form which submits to an iframe, This works fine if you are on a page with the iframe.

I want to be able to have the form on any page and when submit is pressed load a page and send the submit to the iframe

e.g.

  1. On page "article.php" and press submit
  2. Open page "results.php" and
  3. Send post data from form clicked in "article.php" to iframe "DataHere" on "results.php"

Thanks in advance

A: 

You could try detecting if the frame exists when the form is submitted and if it does not, reload the whole page and generate the iFrame.

If you need a hand checkout http://www.java-scripts.net/javascripts/Check-Frames-Page-Script.phtml

Zyris Development Team
Thanks, but how could I extend this to reload and resumbit the form to the iframe?
Matt
I suppose I'm asking how can i pass form data submitted on a page which has been loaded to an iframe
Matt
A: 

I assume you're not just asking about how to specify the TARGET as the IFRAME.

fenway
No, that's easy! I'm after how to specify the target as an iframe on a page that hasn't been loaded, a little like detinationpage.iframe (if only!)
Matt
What do you know about this not-yet-loaded page?
fenway
A: 

Did you ever find an answer, Matt? This is exactly the situation in which I find myself.

(Sorry, this is not an answer. I would have commented on the question if I were ranked higher.)

Fry Quad