This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

popup windows

 
mareena
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a jsp page which contains a textbox and a button. when i press on the
button i must me show a popup window into the same page. the popup window
populate a combo box and its contains a values and select one value, it shoud be
displays on the textbox. how?

thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mareena,
Welcome to the JavaRanch! We don't have many rules around the 'Ranch, but we do require your display name to follow the JavaRanch Naming Policy.
You can change it here.

You can open a window with the window.open() method;


from the child window, you can talk to the parent
window.opener.document.FormName.ElementName.value = "blah";

That is the basic idea....

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic