On 8/9/06, Pat Maddox <pergesu@gmail.com> 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):
http://demo.script.aculo.us/shop
and the script.aculo.us documentation for drag and drop:
http://wiki.script.aculo.us/scriptaculous/show/Draggables
http://wiki.script.aculo.us/scriptaculous/show/Droppables
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.
Max