If you’re using YUI, Prototype, or MooTools and you’re building an application that involves draggable components containing iframes, images, and/or forms, here’s a quick tip to maximize performance during the onDrag event.
Here is a code snippet of basic markup that’ll represent our draggable component.
<div class="moduleContainer"> <div class="moduleHead">Draggable Title</div> <div class="moduleBody">Draggable Content</div> </div>
Inside your moduleBody, you could have a plethora of component types, but [...]