• 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

Multiple select value retrieval

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody!
is it possible to retrieve the multiple values selected by the user in thelist box(<select multiple> )& then open a new window with two or more buttons(O.K,Cancel etc.) to let him know the options he has selected.
Hope i am clear in explaning my problem.
Thanks in advance
Lusha
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure. In your servlet, JSP, CGI or whatever, just retrieve the value(s) returned with that name and see what you get.
 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Frank!
Here, i am talking about the client side scripting.
Lusha
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could define a method to occur onBlur() in your <SELECT> tag. Then in that method you could do a window.open() and show a new page. You would have to force the window to open a blank html page and then you could use document.write() to put your dynamicly generated info into the new window.
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, if you are only going to use "OK" and "Cancel" you could use JavaScript's confirm() rather than writing the output to a new page. Confirm returns either true or false depending on which button is clicked, so it is easy to perform the appropriate action based on the user input.
 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

it seems to be the rigt solution.
Thanks Everybody!
Lusha
reply
    Bookmark Topic Watch Topic
  • New Topic