• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
I AM MIGHTY! Especially when I hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic