Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic