Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

861 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