Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Manage FORM SELECT with multiple selections

Reply
Thread Tools

Manage FORM SELECT with multiple selections

 
 
Stian
Guest
Posts: n/a
 
      09-02-2004
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
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      09-02-2004
"Stian" <(E-Mail Removed)> wrote:

> 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?

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


Well, just deal with it.

> 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
 
 
 
 
Mark Parnell
Guest
Posts: n/a
 
      09-03-2004
On Thu, 2 Sep 2004 09:33:00 +0200, Stian <(E-Mail Removed)> declared in
alt.html:

> 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

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LoadPostData and html <select> with multiple selections studen771 ASP .Net Building Controls 0 09-22-2006 05:34 PM
Multi-select listbox losing selections zdrakec ASP .Net 0 07-22-2005 07:51 PM
How can I separate FORM SELECT with multiple selections? Stian ASP General 2 09-02-2004 11:59 AM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM
Please help to limit number of selections in multiple select list box Paul Javascript 29 01-27-2004 04:56 PM



Advertisments