[Javascript] Select Box - NEW QUESTION

Dave Stoltz dstoltz at shh.org
Tue Jun 15 09:46:38 CDT 2004


NN wasn't working because I didn't include the "document" part in the JS
code...


Wow - picky....

LOL

Thanks for all the help! 

-----Original Message-----
From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
On Behalf Of Chris T
Sent: Tuesday, June 15, 2004 10:10 AM
To: [JavaScript List]
Subject: Re: [Javascript] Select Box - NEW QUESTION

Are you copy and pasting or re-typing? I highly doubt the word Function is
working in either browser...

Earlier you gave your form tag, but what about the form element you were
trying to alter? Try giving us all relevant parts of the code and I'm sure
we can figure this one out.

Chris Tifer
http://www.emailajoke.com

----- Original Message -----
From: "Dave Stoltz" <dstoltz at shh.org>
To: "'[JavaScript List]'" <javascript at LaTech.edu>
Sent: Tuesday, June 15, 2004 8:54 AM
Subject: RE: [Javascript] Select Box - NEW QUESTION


> Sorry, the script function is there, I just forgot to add the function:
>
> <script>
> Function checkall(){
> if (form1.mylist.options.length>0){
> var howmany = form1.mylist.options.length;
> for( var count = 0; count < howmany; count++)
> form1.mylist.options[count].selected=true;
> }
> }
> </script>
>
> PLEASE - ANY IDEAS why this does not work in NETSCAPE?
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu]
> On Behalf Of Peter Brunone
> Sent: Monday, June 14, 2004 6:41 PM
> To: '[JavaScript List]'
> Subject: RE: [Javascript] Select Box - NEW QUESTION
>
>
> Where's the function called checkit()?  All I see is some
> immediately executed code in the script.
>
> <shameless plug>
> By the way, you can do stuff like this instantly with EasyListBox,
> like http://easylistbox.com/demoQuickStart.aspx#action , and (even more
> impressive)
> http://easylistbox.com/demoLinked.aspx (you can use just one list as
well).
> </shameless plug>
>
> Cheers,
>
> Peter
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of Dave Stoltz
>
> Along these same lines, I just discovered another problem.
>
> If I have multiple items in my list box, and when the form is submitted, I
> want to select ALL of the items (so all values pass to next page) - it
works
> in IE, but not Netscape....why?
>
> Here is my code:
>
> <form action="send.asp" method="post" name="form1" id="form1"
> onSubmit="return checkit();">
>
>
> In the HEAD section:
> <script>
> if (form1.mylist.options.length>0){
> var howmany = form1.mylist.options.length;
> for( var count = 0; count < howmany; count++)
> form1.mylist.options[count].selected=true;
> }
> </script>
>
>
> Any ideas??? (other than the fact that Netscape blows chunks) ?
>
> Thanks!
> Dave
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list