Solved

how to do window.open.href in IFrame popup window to submit main form

Posted on 2006-06-13
4
181 Views
Last Modified: 2011-09-20
Hi,
I am working with IFrame
currently I have one main form i.e project, Inside an IFrame exists.
In IFrame, I have button, If I click a button, this will open a popup window.
In popup window I am doing some process. After completion of process, if click OK button,
through Javascript : I am posting the page through URL
 currently
I am using window.opener.href function, this function is doing in IFrame workarea(i.e URL connecting in IFrame)

MyCase is "I want to post the main form when I click on OK button in PopupWindow"
Is there any process, to submit main form.


0
Comment
Question by:AllegisIndia
4 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 250 total points
ID: 16892028
Try:
window.opener.parent.document.forms['main'].submit();

-r-
0
 
LVL 63

Assisted Solution

by:Zvonko
Zvonko earned 250 total points
ID: 16893153
And if your main form is not named "main" then you can use Roonaan's proposal with the index to the first form:

      window.opener.parent.document.forms[0].submit();

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 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