473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

How can I separate FORM SELECT with multiple selections?

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
Jul 19 '05 #1
2 1772
use Split to get them into an array
--
Roji. P. Thomas
Net Asset Management
https://www.netassetmanagement.com
"Stian" <km*****@online.no> wrote in message
news:e0******************@news2.e.nsc.no...
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

Jul 19 '05 #2
Stian wrote:
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


Show the line of code that caused that error.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: frey | last post by:
i have two parts of code here this is a javascript: function addThirdTierCategory(){ var length = document.form.selectedCategory.options.length var maxNum=10; if(length >= maxNum){...
0
by: starace | last post by:
I have designed a form that has 5 different list boxes where the selections within each are used as criteria in building a dynamic query. Some boxes are set for multiple selections but these list...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
2
by: Inquiring_Mind | last post by:
i am creating a database. i have the following question.. as per the specs... i need to be able to pull other forms from the master form using either a list or a combo box. what is the...
2
by: Chris Plowman | last post by:
Hi all, I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
2
by: assgar | last post by:
Hi Developemnt on win2003 server. Final server will be linux Apache,Mysql and PHP is being used. I use 2 scripts(form and process). The form displays multiple dynamic rows with chechboxs,...
3
by: scott | last post by:
Hello all, I am ripping my hair out over this and maybe someone could help. I have a site that has groups and subgroups of those groups that all have int id's. I am trying to have a...
2
by: twill005 | last post by:
Hi, I have created a DB containing server information for multiple servers. I used the multiselect function to select multiple softwares that are on an individual server, but I can't get my...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.