• 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

requesting values from a multiple select

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

how do i request all the values from a multiple select field on an html page? i have tried using getParameterValues but that returns a strings of the same value. and i cant figure out how the getParameterNames method works. i declared it as an enumeration but how do i use it to get the values..

please help!!!
thanx
 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is sample code for getParameterNames

(I have typed this code here, without testing it. There could be a spelling mistake or other minor errors.)
But if your multiple select logic is correct, then it would always set the selected values in the req object and you should be able to retrive it using getParamvalues("paramname");
Hope this helps.

[ October 07, 2004: Message edited by: Jmannu gundawar ]
[ October 07, 2004: Message edited by: Jmannu gundawar ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

using getParamvalues("paramname");



That should be getParameterValues("paramname");

If the values being returned are not what you except, I would investigate why that is.
[ October 07, 2004: Message edited by: Bear Bibeault ]
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's correct. Sorry for typo.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic