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

RE: xsl and checkbox

Subject: RE: xsl and checkbox
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Wed, 9 Oct 2002 13:05:02 -0700
xsl listbox
Hi,
[not an XSL question, but this screwed me up for a while :)]
I do something like this:

<input type="checkbox" name="uid" onclick="toggleValue(this)"/>

and then set the value with the JS function (if 'on', then value=false, vice
versa) and submit the name=value pair. This also solves the problems of getting
nulls on checkboxes set to 'off' (or unchecked - which do not get submitted).

best,
-Rob

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Frans Herbst
> Sent: Wednesday, October 09, 2002 12:33 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  xsl and checkbox
>
>
> > When you say "reference it with javascript", do you mean you want to
> inspect it after it is loaded on the browser, or during the transformation
> to HTML?
>
> Well the easiest possible, I need to populate a string with all the selected
> items when I submit the page.
> If I could check anytime if the checkbox is selected I could populate a
> hidden list box with the info, but everthing I have tried results to an
> unidentifier to the listbox or attribute I defined for the listbox.
>
> Any help on this would be very much appreciated.
>
>  Frans Herbst
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • xsl and checkbox
    • Frans Herbst - Wed, 9 Oct 2002 13:21:00 -0400 (EDT)
      • <Possible follow-ups>
      • cknell - Wed, 9 Oct 2002 14:59:05 -0400 (EDT)
        • Frans Herbst - Wed, 9 Oct 2002 15:29:11 -0400 (EDT)
          • Robert Koberg - Wed, 9 Oct 2002 16:04:09 -0400 (EDT) <=
      • Thomas V. Nielsen - Wed, 9 Oct 2002 15:36:36 -0400 (EDT)
      • cknell - Wed, 9 Oct 2002 16:36:03 -0400 (EDT)

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.