• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Updating the value of Text box

 
Ranch Hand
Posts: 1228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm showing a popup from a jsp page, when I select any value ( a date ) in the pop up, a text box ( lets name it as dateX ) in the parent window that showed the pop up gets updated with the value selected in the popup.

Now the problem few other text boxes should get updated automatically when ever the value in this textbox ( datex ) gets updated. Can any one throw light on this ?
[ September 29, 2005: Message edited by: Srinivasa Raghavan ]
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the pop up window code write

window.opener.document.form1.text1.value = urvalue

This will automatically populate the parent window's text box
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have multiple tasks that need to be performed in the parent when a selection is made in the popup, rather than have the popup perform them directly create a function in the parent that handles the tasks. Then have the popup call that function with the changed values. This way your popup is decoupled from having to know how the parent is structured.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic