Solved

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
CKEditor - will not function 7 33
Safari SVG Image Problem 1 20
Phone Dialer 5 36
Remove Protocol if at start of string? 3 13
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

758 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