i found this post which helped me a lot:
http://groups.google.com/group/jquery-ui/browse_thread/thread/4210e562b376879b/8aa38a956b3d83ff?lnk=gst&q=position+draggable#8aa38a956b3d83ff

now my code is able to report the position of my draggable object
while it's dragged, hooray!

$(document).ready(function(){
        // Crossfader Animation: Draggable 
http://docs.jquery.com/UI/Draggables/draggable#options
        $("#regler").draggable(
                {
                        containment: 'parent', // only move in parent object
                        axis: 'x',
                        drag: function()
                        {
                                var position = $("#regler").position();
                                console.log( "left: " + position.left);
                        }
                });
});
--~--~---------~--~----~------------~-------~--~----~
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