On 8/9/06, Pat M. [email protected] wrote:
I want to be able to drag an image somewhere in the browser, and then
call an action based on where it’s dropped. Actually I’d probably
want to call the same action regardless, but send it particular
parameters based on where it dropped. I’ve seen the sortable list
demos, but I’m wondering if I can do something more flexible like
that. Any ideas?
Look at the shopping cart example (has ruby code):
and the script.aculo.us documentation for drag and drop:
Unless you’re talking about dragging an image into the browser, from
somewhere like Windows explorer - in which case you’re out of luck.
Web browsers don’t support that, for various reasons. Well, Internet
Explorer has some support for this, but it’s basically a non-standard
hack and a security risk.