Click here to Skip to main content
15,901,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There is a requirement in the project which says :-

1.There is a button in the main window.OnClick of the button 1st pop-Up is displayed.

2.There is a link in the 1st pop-up .On click of the link 2nd pop-up is displayed.

3.I need to populate the data selected in the 2nd pop-up to the main window.

Can you please provide the solution it is very Urgent?Thanks in Advance
Posted
Updated 4-Apr-12 8:51am
v2
Comments
[no name] 4-Apr-12 14:52pm    
It may be urgent to you but not to us. This is a volunteer site and people will answer on their time, not yours. Asking for urgent help is just rude.

Generally you need to use window.opener object to access to the opener window. In order to fill main window from the second popup it is window.opener.opener.document.getElementById...

Take a look at this post which has used window.opener:
http://www.dynamicdrive.com/forums/showthread.php?t=42873[^]

I hope it helps,
Cheers
 
Share this answer
 
v2
You should reconsider your design. Popups opening popups is a horrible and outdated UI.

Here is a hint: window.Opener
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900