Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-27 Thread Wojtek Zadora
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 fit

Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Phil Petree
It is intended solely for the addressee. Access to this > e-mail by anyone else is unauthorized.* > > ** ** > > *From:* prototype-scriptaculous@googlegroups.com [mailto: > prototype-scriptaculous@googlegroups.com] *On Behalf Of *Phil Petree > *Sent:* Wednesday, April 25, 20

RE: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Brian Marquis
ess to this e-mail by anyone else is unauthorized. From: prototype-scriptaculous@googlegroups.com [mailto:prototype-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:

Re: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Phil Petree
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,

RE: [Proto-Scripty] Tactical Advice: Many rows, one checkbox per row

2012-04-25 Thread Brian Marquis
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: Joe Cool Fred Flintstone Barney Rubble Becomes ApprovedSubscribers="123, 789" when