darrel.austin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-03 23:12 UTC
can Sortable.sequence get nested element info?
I have sortables that I can grab the order of via Sortable.sequence or Sortable.serialize I''d like to go a step further and grab the value of an INPUT checkbox that is within each sortable. Can that be done with those functions and/or is there a way within scriptaculous to do that? At this point, I''m thinking that I''ll have to walk through each item via a separate function and pass the values of the check boxes as a separate array, but if there''s a way to do this within scriptaculous, I''d obviously rather do it there. -Darrel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sounds like a good place to use $$().
var values = $$(''#myDraggableElementId input'').map($F);
TAG
http://prototypejs.org/api/utility/dollar-dollar
http://prototypejs.org/api/enumerable/collect
On Sep 3, 2007, at 5:12 PM,
darrel.austin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
>
> I have sortables that I can grab the order of via Sortable.sequence or
> Sortable.serialize
>
> I''d like to go a step further and grab the value of an INPUT
checkbox
> that is within each sortable. Can that be done with those functions
> and/or is there a way within scriptaculous to do that?
>
> At this point, I''m thinking that I''ll have to walk
through each item
> via a separate function and pass the values of the check boxes as a
> separate array, but if there''s a way to do this within
scriptaculous,
> I''d obviously rather do it there.
>
> -Darrel
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
darrel.austin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Sep-05 01:54 UTC
Re: can Sortable.sequence get nested element info?
Thanks, Tom. I''ll give that a shot! On Sep 4, 9:43 am, Tom Gregory <t...-PGZyUNKar/Q@public.gmane.org> wrote:> Sounds like a good place to use $$(). > > var values = $$(''#myDraggableElementId input'').map($F); > > TAG > > http://prototypejs.org/api/utility/dollar-dollarhttp://prototypejs.org/api/enumerable/collect > > On Sep 3, 2007, at 5:12 PM, darrel.aus...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > > > > > I have sortables that I can grab the order of via Sortable.sequence or > > Sortable.serialize > > > I''d like to go a step further and grab the value of an INPUT checkbox > > that is within each sortable. Can that be done with those functions > > and/or is there a way within scriptaculous to do that? > > > At this point, I''m thinking that I''ll have to walk through each item > > via a separate function and pass the values of the check boxes as a > > separate array, but if there''s a way to do this within scriptaculous, > > I''d obviously rather do it there. > > > -Darrel--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---