This is exactly what I was looking for, thanks Stefan! Regards, -scott
________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan Petre Sent: Tuesday, January 23, 2007 11:20 AM To: jQuery Discussion. Subject: Re: [jQuery] Question about access to "ghost" objects created by Interface Draggable 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/
