[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Checkboxes in XSLT

Subject: Re: Checkboxes in XSLT
From: Shawn <sgrover@xxxxxxxxxxxxxx>
Date: Sun, 21 Nov 2004 17:53:25 -0700
xslt checkboxes
Not sure I'm understanding everything here, but....

Standard HTML/JavaScript dictates that if more than one form element has the 
same name, then they will need to be reference as an array via JavaScript.  
You DO NOT need to include the square brackets when naming your elements - 
this happens automagically.  If order is important, then you must ensure the 
items are rendered in the proper order.

So, an output of this:

<input type="checkbox" name="check1" value="Yes">
<input type="checkbox" name="check1" value="No">

will result in an array (document.form[0].check1).  And 
"document.form[0].check1[1].value" would equal "No".

HTH

Shawn

On Sunday 21 November 2004 15:36, Jen Jiang wrote:
> I want the checkboxes to be an array so I include []
> into the name. Is there other solutions that I can use
> to form an array?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.