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 2 1797
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******** **********@news 2.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
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" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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){
alert('maximum selection exceeded');
return;
}
....................................
|
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 boxes
do not necessarily need to have a selection made to be used in the
dynamic query.
In essence the form can have selections made in all or none of its list
boxes to form the dynamic query
I am looking to get some feedback in reference to...
|
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.
Tables: (abbreviated)
TblDivision
DivisionID
|
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 difference between the two and the
pros and cons
how do i make each of them so that when i chose a name of a form it
pulls it up with the information regarding that record (employee)
|
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 (multi-select without modifier keys). I
got that working fine, but I also wanted to keep rows selected after a sort,
which I do by storing the row's id in an arraylist. The idea was to do the
sort and then go back and re-select the rows with that...
| |
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 columns, "scode" and "sname", as 1 column
(if not possible then 2 columns will be fine) in the listbox. Can the
listbox display 2 columns information from the dataset and how can I do that?
Also, I set the property of the listbox to selectionmode...
|
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, input box for units of service, description of the service and each row has its own dropdown list of unit fees that apply.
Each dynamically created row will return 3 values fee1_choice, fee1_unit and fee1_money.
Note The above informaton is...
|
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 multiple select drop down (could select more than
one group) like the following:
|
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 selections to display on the print preview of the form.
Is there another way to display these multiple selections? Maybe in the table?
More than one user will be viewing this DB, using it as a reference.
Thanks in advance!
PS. I do not know VBA,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |