• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic