You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Joseph <pj...@yahoo.com> on 2004/10/03 04:45:10 UTC

Re: multi-value double list box [RESOLVED}

This turned out to be a xsl error.  Once I fixed that,
it went away.

sorry for the bother.

-Paul
--- Paul Joseph <pj...@yahoo.com> wrote:

> //
>
-------------------------------------------------------------------
> // selectAllOptions(select_object)
> Hi,
> 
> In the form1 example: 
>
http://localhost:8080/cocoon/samples/blocks/forms/form1
> 
> The multi-value "double-list box" works for "Drinks"
> works fine.
> 
> However, when I try it separately in my code,
> cutting
> and pasting the widget, I get the following error,
> that appears to end up in the "Matt Kruse" java
> library....
> 
> Any one seen this before?
> 
> thx
> Paul
> 
> ===============
> 
> 'Options length' is null or not an object.
> 
> 
> //  This function takes a select box and selects all
> options (in a 
> //  multiple select object). This is used when
> passing
> values between
> //  two select boxes. Select all options in the
> right
> box before 
> //  submitting the form so the values will be sent
> to
> the server.
> //
>
-------------------------------------------------------------------
> function selectAllOptions(obj) {
> 	for (var i=0; i<obj.options.length; i++) {
> 		obj.options[i].selected = true;
> 		}
> 	}
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org