TheBagbournes wrote:
Kai Zhu wrote:
I wrote a piece of code to handle drag and drop of DIV element.
You're wasting your time.
Use http://developer.yahoo.com/yui/
Thus site may work. However I can not recommend it. For example, in
their simple example of code to drag 3 objects, a very simple case,
they managed to generate over 200 lines of code on the main page with
links to 6 external scripts, and there were several validation errors
at the W3C validator. They seem to have generated a bloated
one-size-fits-all code, that reminds me of some of the Windows programs
for writing code. Also, for the several external scripts, you are
linking to an outside server rather than to your own if you are not
using Yahoo as a host. Of course you likely could download this whole
bloated mess of Yahoo scripts, but you will then have to put them all
up on your server and link to several external scripts every time you
wish to use even the most simple drag-and-drop operation.