you should use the  sortable.serialize-funktion..
function updateList(twothirds_column) {
        var temp_out = Sortable.serialize(basis);
        var output = new Array();
        temp_out.split('&').each(function(el) {
                        output.push(el.split('=')[1]);
                });

and can use the output[] to get the numbers.. later you have to search
for the id..

On 11 Jan., 03:05, Loony2nz <[EMAIL PROTECTED]> wrote:
> How do I get the ID of the sortable that is being dragged?
> Here's my code snippet:
>
> columns = ['twothirds_column','onethird_column'];
> Sortable.create('twothirds_column', {onUpdate:getPortalOrder,
> dropOnEmpty:true,ghosting:false,tag:'div',containment:columns,handle:'handle',only:'drag_panel'});
>
> Sortable.create('onethird_column',
> {onUpdate:getPortalOrder2,dropOnEmpty:true,ghosting:false,tag:'div',containment:columns,handle:'handle',only:'drag_panel'});
>
> I've tried passing values to the callback function, but all i get is
> the parentID (either twothirds_column or one_thirdcolumn).  I need to
> get to the id of the draggable (ex. twothirds_column_1).
>
> Anyone know how to do this?  I'm lost :(
>
> Thank you!
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to