HighDots Forums  

Manage FORM SELECT with multiple selections

alt.html alt.html


Discuss Manage FORM SELECT with multiple selections in the alt.html forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stian
 
Posts: n/a

Default Manage FORM SELECT with multiple selections - 09-02-2004 , 03:33 AM






Hi!

I have made a form with two SELECT LIST-boxes where the first is dynmically
filled when you enter the page, and then one can select multiple options
from the list and move across to the other box using javascript. Every
option in the list has an integer value.

The FORM is submitted with the POST method and received on an ASP page. I
then want to manage the selected options one by one. How can I separate
them?

It currently looks like this (with four selections from the box).
1, 5, 9, 10

I tried to manage this as a string, but was told that it was not a string.
Type mismatch: '[string: "1, 5, 9, 10"]'

Can anyone help med with some code that can separate these options for
further work?

Regards, Stian



Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Manage FORM SELECT with multiple selections - 09-02-2004 , 05:16 AM






"Stian" <kmartin (AT) online (DOT) no> wrote:

Quote:
I have made a form with two SELECT LIST-boxes where the first is
dynmically filled when you enter the page, and then one can select
multiple options from the list and move across to the other box using
javascript.
And what happens when JavaScript code is not executed?

Quote:
It currently looks like this (with four selections from the box).
1, 5, 9, 10
Well, just deal with it.

Quote:
I tried to manage this as a string, but was told that it was not a
string. Type mismatch: '[string: "1, 5, 9, 10"]'
That's an ASP problem then. Try asking in an ASP group, and give a hint
about what you are actually doing, by revealing a piece of code. Posting
the URL wouldn't hurt either.

But regarding user interfaces, multiple selections in <select> menus
are generally awkward, inferior to sets of checkboxes. At least you
should specify a SIZE parameter value that equals the number of options.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #3  
Old   
Mark Parnell
 
Posts: n/a

Default Re: Manage FORM SELECT with multiple selections - 09-02-2004 , 08:42 PM



On Thu, 2 Sep 2004 09:33:00 +0200, Stian <kmartin (AT) online (DOT) no> declared in
alt.html:

Quote:
Can anyone help med with some code that can separate these options for
further work?
Trivial in most programming languages - what is your preferred flavour?

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.