Drag/Drop with Image Maps

Hi all,

Is it possible to use HTML area objects from an image map as
droppables for a drag/drop interface? I want to get a different
response depending on which part of an image I drop a draggable div
object on. The context is creating an incident report form where
injuries can be dragged onto a body sketch. I’ve tried this using the
code below. However, the droppable is always identified as
“front_head”, the first area object, no matter which part of the image
is dropped on. Has anyone managed to get this working successfully, or
found a way to achieve a similar effect?

Many thanks,
Adam

<%= image_tag “body_sketch_front.gif”, :usemap => “#front” -%>

punch
kick

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs