<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Thanks for the fix! When i get to clean up the code more, this will get in :)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thomas</DIV><BR><DIV><DIV>Am 06.07.2005 um 11:39 schrieb yufan shi:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR> First thanks for your great scripts!<BR> <BR> According to the documents:<A href="http://script.aculo.us/drag-and-drop">http://script.aculo.us/drag-and-drop</A><BR> The Draggable's option 'handle'  value is a string referencing a CSS class. The first child/grandchild/etc.<BR> element found within the element that has this CSS class will be used as the handle.<BR> However, in the source code file dragdrop.js line 250, is, <BR> this.handle= options.handle ? $(options.handle) : this.element;<BR> <BR> It seems to look for a element with id equals to the handle option's value.<BR> <BR> I made some small changes, the code copied from Sortable<BR>     // updated by lobster, 2005-07-06<BR>     // bug? according to the documents:<A href="http://script.aculo.us/drag-and-drop">http://script.aculo.us/drag-and-drop</A><BR>     // The value is a string referencing a CSS class. The first child/grandchild/etc.<BR>     // element found within the element that has this CSS class will be used as the handle.<BR>     //this.handle       = options.handle ? $(options.handle) : this.element;<BR>     this.handle       = options.handle ? Element.Class.childrenWith(this.element, options.handle)[0] : this.element;<BR> Now, the script works just like what was told by the document.<BR><BR>-- <BR>Regards.<BR><BR>Yufan<DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Rails-spinoffs mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Rails-spinoffs@lists.rubyonrails.org">Rails-spinoffs@lists.rubyonrails.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs">http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs</A></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></BODY></HTML>