Something like this, perhaps?

$("#draggable").draggable({
  start: function() {
    $(this).data("location", "RIGHTBOX");
  }
});
$("#droppable").droppable({
  drop: function(event, ui) {
    alert(ui.draggable.data("location"));
  }
});

- Richard

On Fri, Mar 27, 2009 at 4:58 AM, Paul Hutson <[email protected]>wrote:

>
> Thanks for the reply Shedokan.. I'm not quite sure I'm following you
> though. ... when I say the origin, I want to - upon clicking on an
> item, assign it with a start location variable (scope, or something
> else.. with say a value of "RIGHTBOX") then when I drop it somewhere I
> want to be able to read that variable back...
>
> Any ideas on that front?
>
> TIA,
> Paul Hutson
>
>
> On Mar 26, 11:44 pm, Shedokan <[email protected]> wrote:
> > If your'e calling it inside a function of the draggable so you can use
> > $(ui.draggable).draggable('option', 'scope') because there is no
> > ui.draggable
> >
> > alose if you mean that you want to get the left and top position you
> > can use ui.offset.
> >
> > On 26 מרץ, 16:57, Paul Hutson <[email protected]> wrote:
> >
> >
> >
> > > As a bit of an addon... the thing I really want to do is find out
> > > draggable objects origin location is.
> >
>

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