• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Add items in Drop Down List from a child window to parent window.

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In my jsp page i have a hyper link, a text box and an empty drop down list.
On clicking hyper link a child window is open in which i can select some value
and this values pass to the parent window text box and the child window closes.
Now i want to do the same thing with my drop down list. I mean select some value from the child window and then show this in the drop down list. But i m not finding any solution.
If any body has any idea help me.
Thanks in advance.
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Write a javascript method in the parent window:

In your popup window, before you do window close, pass the values to the parent's script method:

That should do it, I s'pose.
[ January 04, 2008: Message edited by: Anirvan Majumdar ]
reply
    Bookmark Topic Watch Topic
  • New Topic