aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Passing Value From Parent to Popup Window by Pressing the Enter Key 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 "Passing Value From Parent to Popup Window by Pressing the Enter Key" Watch "Passing Value From Parent to Popup Window by Pressing the Enter Key" New topic
Author

Passing Value From Parent to Popup Window by Pressing the Enter Key

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am trying to pass the String that is entered in a parent window input field to a popoup window input field. And the pop up function is invoked by pressing the "Enter" key on the keyboard.

For example, if I enter the letter "m" in the parent window (with form id="vr") input field (with id="subjectCitizenOf") and press the "Enter" key, the letter "m" is supposed to populate the popup window (with form id="countriesList") input filed (with id="filter").

The pop up function that is invoked by pressing the "Enter" key works! But the String in the input field is not passed from the parent window to the popup window.

Please point out what is wrong with my code.

My parent window code:

My popup window code:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
The id of the field in your code is not "countriesList:filter" unless your server is doing it.

Also here is something I wrote on passing data to the child
http://radio.javaranch.com/pascarello/2005/01/18/1106063002000.html

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing Value From Parent to Popup Window by Pressing the Enter Key
 
Similar Threads
Link to Pop up window in Form
Two HTML Elements Use the Enter Key to Invoke Two Different Functions
Issue in populating field in parent window
Communicate from a Popup Window back to the Parent Window
How to Get JSF inputText Value to JavaScript?