CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 JavaScript to limit # of selections in a multi-select ListBox

Print topic Send  topic

Author Message
Chris Moore
Posted: 08/06/2003, 2:26 PM

I need a JavaScript that can limit the number of selections to a maximum of
3 in a multi-select List Box. Does anyone know of where I can fin done or
maybe another way to accomplish this?

Thanks

Chris
Robert Sorrells
Posted: 08/09/2003, 7:16 AM

I found something close...
http://javascript.internet.com/forms/pass-multiple-values.html

Its a single drop-down adding a line at a time. You should be able to
modify the code to limit the list to 3 unique items.

Bob


"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93CFA7A3673D2cabubba@66.180.229.147...
I need a JavaScript that can limit the number of selections to a maximum of
3 in a multi-select List Box. Does anyone know of where I can fin done or
maybe another way to accomplish this?

Thanks

Chris

DonB
Posted: 08/09/2003, 8:47 AM

You might simply put three listboxes on the page and have only one selection
per control. Is screen-space a factor? This approach makes it clear to the
user that they can make no more than 3 choices and ensures they can see all
3 of them at all times.

DonB


"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93CFA7A3673D2cabubba@66.180.229.147...
> I need a JavaScript that can limit the number of selections to a maximum
of
> 3 in a multi-select List Box. Does anyone know of where I can fin done or
> maybe another way to accomplish this?
>
> Thanks
>
> Chris

Chris Moore
Posted: 08/09/2003, 12:22 PM

FRontPage has this feature to limit the # of selections but it looks like
it is implemented as one of the 'webbots' & I haven't yet played with CCS
pages in FrontPage so I'm not sure how that will work.

Thanks for the help.

Chris


"Robert Sorrells" <rsorrellsU@KNOWmindspring.com> wrote in
news:bh2vnv$m5g$1@news.codecharge.com:

> I found something close...
> http://javascript.internet.com/forms/pass-multiple-values.html
>
> Its a single drop-down adding a line at a time. You should be able to
> modify the code to limit the list to 3 unique items.
>
> Bob
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93CFA7A3673D2cabubba@66.180.229.147...
> I need a JavaScript that can limit the number of selections to a
> maximum of 3 in a multi-select List Box. Does anyone know of where I
> can fin done or maybe another way to accomplish this?
>
> Thanks
>
> Chris
>
>
Robert Sorrells
Posted: 08/10/2003, 6:43 AM

Another option if you can't find it...

Go to http://www.RentACoder.com and post a job. This should cost you no
more than $10 to $15.

Bob


"Chris Moore" <chris@dblayout.com> wrote in message
news:Xns93D2928DF2D48cabubba@66.180.229.147...
FRontPage has this feature to limit the # of selections but it looks like
it is implemented as one of the 'webbots' & I haven't yet played with CCS
pages in FrontPage so I'm not sure how that will work.

Thanks for the help.

Chris


"Robert Sorrells" <rsorrellsU@KNOWmindspring.com> wrote in
news:bh2vnv$m5g$1@news.codecharge.com:

> I found something close...
> http://javascript.internet.com/forms/pass-multiple-values.html
>
> Its a single drop-down adding a line at a time. You should be able to
> modify the code to limit the list to 3 unique items.
>
> Bob
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93CFA7A3673D2cabubba@66.180.229.147...
> I need a JavaScript that can limit the number of selections to a
> maximum of 3 in a multi-select List Box. Does anyone know of where I
> can fin done or maybe another way to accomplish this?
>
> Thanks
>
> Chris
>
>

Chris Moore
Posted: 08/10/2003, 7:27 AM

Thats funny you say that, I was justing thinking about that
yesterday. Thanks for the thoughts on this.

Chris


"Robert Sorrells" <rsorrellsU@KNOWmindspring.com> wrote in
news:bh5i6i$rkd$1@news.codecharge.com:

> Another option if you can't find it...
>
> Go to http://www.RentACoder.com and post a job. This should
cost you no
> more than $10 to $15.
>
> Bob
>
>
> "Chris Moore" <chris@dblayout.com> wrote in message
>news:Xns93D2928DF2D48cabubba@66.180.229.147...
> FRontPage has this feature to limit the # of selections but it
looks like
> it is implemented as one of the 'webbots' & I haven't yet
played with CCS
> pages in FrontPage so I'm not sure how that will work.
>
> Thanks for the help.
>
> Chris
>
>
> "Robert Sorrells" <rsorrellsU@KNOWmindspring.com> wrote in
>news:bh2vnv$m5g$1@news.codecharge.com:
>
>> I found something close...
>> http://javascript.internet.com/forms/pass-multiple-values.html
>>
>> Its a single drop-down adding a line at a time. You should be
able to
>> modify the code to limit the list to 3 unique items.
>>
>> Bob
>>
>>
>> "Chris Moore" <chris@dblayout.com> wrote in message
>>news:Xns93CFA7A3673D2cabubba@66.180.229.147...
>> I need a JavaScript that can limit the number of selections to
a
>> maximum of 3 in a multi-select List Box. Does anyone know of
where I
>> can fin done or maybe another way to accomplish this?
>>
>> Thanks
>>
>> Chris
>>
>>
>
>
>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.