You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jerry Jalenak <Je...@LABONE.com> on 2003/05/19 17:08:16 UTC

[OT] access with JavaScript

I am rendering a series of checkboxes using the <nested> taglib.  The
resulting HTML looks like this:

	<input type="checkbox" name="domain[0].application[0].applName"
value="on">
	<input type="checkbox" name="domain[0].application[1].appName"
value="on">
		... etc ...

I now need to implement a 'Select All' type of function using JavaScript.
Since JavaScript doesn't really support multi-dimensional arrays, how do I
reference these fields?  Normally I'd use something like
'document.formname.domain[0].application[0].applName.value (or checked)',
but I keep getting messages that 'document.formname.domain[0] is null or not
an object.  How do I do this?

TIA!

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

jerry.jalenak@labone.com


This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: securityincidentreporting@labone.com



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org