All the callbacks are listed at this link and then click on the
"Options" tab:
http://docs.jquery.com/UI/Sortables/sortable#options

Here a sample from my source code (use Mozilla Firefox Firebug
extensions to figure out what is "e" and "ui"):
function _onSortableUpdate(e, ui) {
        //console.log('Update');
        _toggleSortableDummies();
}
function _onSortableChange(e, ui) {
        //console.log('Change');
        ui.placeholder.width(ui.item.get(0).offsetWidth +
'px').height(ui.helper.height());
}

Sincerely,
Will
http://www.babybluebox.com/blog/

On Sep 14, 7:33 pm, buzz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Loving the new UI (been a while since I used it)!
>
> I have two sortable list. All the LI's have unique ID's. I am dragging
> LI's from one list to the other.
>
> I need to know the ID of the LI that was dropped. I can't see a
> callback that will do this, I'm able to do stuff like this:
>
> $("#active_jobs").bind("sortreceive", function(e){
>         alert('dropped on: '+$(this).attr('id'));});
>
> $("#paused_jobs").bind("sortreceive", function(e){
>         alert('dropped on: '+$(this).attr('id'));
>
> });
>
> But what I really want to know is the ID of the LI that was dropped.
>
> Something like this would be handy:
>
> $("#paused_jobs LI").bind("dropped", function(e){
>         alert('dropped LI with ID of: '+$(this).attr('id'));
>
> });
>
> Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" 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/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to