File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Fetching Pop up window form values in Parent Window. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Fetching Pop up window form values in Parent Window." Watch "Fetching Pop up window form values in Parent Window." New topic
Author

Fetching Pop up window form values in Parent Window.

Parveen Aggarwal
Greenhorn

Joined: Jun 08, 2004
Posts: 7
Hi Ryan and Nate,

Couls you please help me out by telling how to fetch the value of POP up window form element in the parent window.

As i am struglling hard to get this thing done.

Pls help me out of this.

In my case i want to fetch the value of pop up window form element in the parent window whenever any click event is happening in the parent window and pop up getting opened.

Looking forward for your reply..

regarsd,
Parveen
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
This has nothing to do with the Ajax book!

From the pop up you can get the value by doing

var strValue = window.opener.document.formName.elementName.value;

Eric
 
Don't get me started about those stupid light bulbs.
 
subject: Fetching Pop up window form values in Parent Window.
 
Similar Threads
keeping pop up window active until clicked
Close Popup and refresh parent
Problem with html:errors
How to set a property's value thats part of a ArrayList using Javascript.
how to implement this in DHTML