Is new Draggable() executed only after the page has loaded?

I have had success with the technique:

* Create a JavaScript "class" with a register() method; this method
performs all the new Draggable() calls.

* Use connect() to register the register() method to execute on page
load.  Example:
  var dm = new DragManager();
  connect(window, "onload", dm, "register");

I got Drag/Drop to work after pulling in various examples posted to the
list.  I'm not sure if there's a guide/tutorial that helps document how
to get started, but I'm happy to help out.

Cheers,
CM

On Oct 24, 10:47 pm, Steve Slevinski <[EMAIL PROTECTED]> wrote:
> I'm using 1.4 revision 1176.
>
> I have a div that I want to make draggable.  I thought it was simple
> enough but I'm getting an error.
>
> d.makePositioned is not a function
> DragAndDrop.js (line 468)
>
> My code is
> var d = $("mydivid");
> var x = new Draggable(d);
> 
> This causes the error above.
> 
> Regards,
> -Steve


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to