Submitting a form with iframe

Submitting a form with iframe

Hello,

Here's the scenario. I have a page with a form. Now what I am doing is that when the main page (the page that contains the iframe) submits, it takes the values form some fields, passes it to the iframe source, submits the form on the iframe page, and then submits the main form. This is triggered via the "onsubmit" event. So what I basically want is for the inner form (page which is the source of iframe) to submit first , before the main page (or the page using the iframe) .

I managed to get this working on IE, but not on firefox. So what I am looking for is if jquery has a way to make sure that the iframe finished submitting and then submit the main form ( this one from the main page).

Is there a way to verify this using jquery ?

Any help is very much appreciated. Thank you