Solved

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

Posted on 2006-06-13
4
177 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now