sortable multiples parameters

pibrom
Tue, 31 Jul 2007 08:29:57 -0000

hi,

I use scriptaculous sortable elements.
I wish to send to the sort SQL request more parameters than my
sortable list, because my MySQL table integers both element_id to
sort, ranking for this element, and family_id.
I wish to send to my update request this family_id by POST.

this is the AJAX script :
function updateOrder()
            {
                var options = {
                                method : ''post'',
		parameters : Sortable.serialize(''contenus_list'',2)
                              };

                new Ajax.Request(''processor.php'', options);
            }

            Sortable.create(''contenus_list'', { onUpdate :
updateOrder });

How can I add another parameter in the Ajax.Request, different from
the sortable.serialize ?

Thanks for your answers.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---