item[]=1&other[]=1&another[]=4
That works well with multiple lists; each list gets a unique identifier, and moving items from multiple lists into one list still works.
On 10/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> On Oct 27, 2006, at 8:00, Yehuda Katz wrote:
>
>> So I'm working on various Rails solutions using jQuery and Interface.
>> The way Rails/Prototype handles sortables is as follows:
>> You have a series of id's in a list: item_2, item_4, item_1,
>> item_3, etc.
>> Prototype serializes as: item[]=2&item[]=4&item[]=1&item=3 etc.
>
> I also agree that Prototype way is more intuitive. For Interface in
> the receiving PHP script I ended up doing something like below. I
> sortable items have id:s project_1, project_2 ...
I don't agree. What if you have a sortable list with different ID's?
e.g. item_1, other_1, another_4
I wonder how PT handles that.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/