http://docs.jquery.com/UI/Draggables/draggable#options

you probably want ui.absolutePoistion for relation to the page

On Aug 5, 10:49 pm, discoverer <[EMAIL PROTECTED]> wrote:
> I spent a day trying to make this and failed:
> (well...I'm newbie with Jquery stuff)
>
> a draggable object that alerts its position when the drag ends.
>
> this is what I did recently.(but failed):
>
> $(".block").draggable(
> {
> stop:function(ev,ui){
> alert("position:" + ui.position.left + "," + ui.position.top);}
>
> )
> //This disables the draggable object. I don't know why,but it does.
> (Tried in firefox 3.0)
> //And, no alerts appear
> //Note:
> $(".block").draggable()
> worked fine.
>
> Also, I would appreciate if someone could explain how to get the
> position relative to the entire page(not the window...)

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