here's a drag and drop script in case you need it.">
A week ago I surprised myself by writing a simple drag and drop script in five minutes, without needing to debug even one single error. I enthousiastically started to write a QuirksMode page about it, until I realised that a mouse-only drag and drop script is distinctly old-fashioned these days.
Therefore I had to add keyboard compatibility, which took me five hours (mainly thanks to the confusing event situation.) Due to other pressing matters it took me five days to write the final version of the page.
It's finished now. So here's a drag and drop script in case you need it.
The last time I worked on such a script was somewhere back in 2000. I'd decided to write the final, definitive cross-browser drag and drop script, spent days and days on it, but in the end had to give up because of Netscape 4 on Mac (you'll notice this is seriously ancient history). It was all the more galling because I had an example script that did work properly in NN Mac. From that day on I tended to avoid drag and drop scripts, and I've never even touched on from then until a week ago.
I hope someone can give this script a good test run in Safari 2, which I don't have available. I assume the script works, since it does in Safari 1.3 and 3, but it's always nice to have that assumption confirmed.
Besides, I'd like to know where Safari 2 stands in relation to the key events. Therefore I'd like to ask someone to copy the page and make the following changes to the script:
startDragKeysand turn on drag and drop in key mode. Does Safari 2 move the element only once (as 1.3 does), or continuously (as 3 does)?
case 63232-5lines from
dragKeys. Does key mode work in Safari 2?
If you like this blog, why not donate a little bit of money to help me pay my bills?
Comments are closed.