Hi Scott,

You can access the ghost element by keeping a reference to it when the dragging starts. 'onStart' callback gets as first parameter the cloned element. Another way to access it as $.iDrag.helper.get(0).firstChild.

You ca hack to access drag properties of an element directly DOMElement.dragCfg.[revert|fx]

Stefan


Weaver, Scott wrote:

Hi,

 

Just recently started evaluating jQuery (some great stuff!) as a replacement for an existing JS framework that has proven to be a performance/management nightmare (won’t mention any names).

 

Now for the task at hand, is there a simple way to access the “ghost” object created by the Draggable object?  Reason I ask is that I need to be able to change the style of the ghost object as it passes over valid (Droppables) and invalid drop areas (everything else).  I know YUI!’s drag and drop API Allows you access to both its proxy (same idea as ghost) and linked (the original target) object via function calls but I can’t seem to find anything in the Droppable code that provides for this.

 

Another question I have is regarding programmatically changing the value of “revert” and/or “fx” properties on the Draggable object.  Is it possible?  I would like to have the animation fx apply when a Draggable is dropped on an invalid target as the Draggable returns to its original position.

 

Regards,

Scott


_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to