Sorry for the mess I produced. Of course all this stuff with _checked
array is not necessery if you want send AjaxRequest immediatly after
checkbox click - just extract the clicked item and send all needed data
including checkbox state as you do.
-wz
Hi
I wrote a routine (not sure if it
Why not get rid of the hidden field and assign the record id as the value of
the checkboxes. When you submit the form (or serialize it) only the checked
items will be passed to the server.
For example:
input name=ApprovedSubscribers value=123 type=checkbox
checked=checked/ Joe Cool
input
Funny, I had just figured out what you had suggested for getting rid of the
hidden field and making the record id the value.
The problem is that ONLY the checked items get passed... if someone is
unchecked their approval is revoked so I need to update the table for
that as well.
On Wed, Apr 25,
-scriptaculous@googlegroups.com] On Behalf Of Phil Petree
Sent: Wednesday, April 25, 2012 2:01 PM
To: prototype-scriptaculous@googlegroups.com
Subject: Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per
row
Funny, I had just figured out what you had suggested for getting rid
@googlegroups.com
*Subject:* Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox
per row
** **
Funny, I had just figured out what you had suggested for getting rid of
the hidden field and making the record id the value.
The problem is that ONLY the checked items get