Overlaying Lines on an image

I am developing a project where users will need to be able to click on
an image map to choose a path between several different places on the
image. For example they click on A, B, C, then D compared to B, C, D,
A.

I am using an image map to detect where on the image the user clicks and
storing the click as their response in the format (A,D,B,C). I
understand all of this.

MY QUESTION IS… is there an easy way to draw lines from point A,B,C
and D. The lines do not need to do anything but appear on the screen.
I am trying to make it so the user can see there path as they click
their way through the image.

I am trying to stay away from custom javascript b/c it doesn’t always
work they way you want it to in all the different browsers.

Is there an easy or should I say dependable way to do this? Any plugins
or built in AJAX. I have been searching around but haven’t found
anything that solves my problem.

Thanks in advance,

Chris

Any ideas? Thanks in advance

On 12/22/07, Chris H. [email protected] wrote:

MY QUESTION IS… is there an easy way to draw lines from point A,B,C
and D. The lines do not need to do anything but appear on the screen.

That’d be some javascript then.

I am trying to make it so the user can see there path as they click
their way through the image.

I’d go with rmagick. The lines could be added to the image server
side so they will look the same everywhere.


Greg D.
http://destiney.com/

Thanks a lot Greg, I think thats exactly what I was looking for.

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