[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread tlob
the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position cheers tlz On May 30, 1:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a client at the moment - they have a map and they want to pinpoint where on this map

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread Michael Price
tlob wrote: the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position cheers tlz On May 30, 1:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a client at the moment - they have a map and they want to pinpoint where on

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread Michael Price
tlob wrote: the docs are good for searching... so is google: http://docs.jquery.com/Tutorials:Mouse_Position That did the trick, thanks :) Regards, Michael Price

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread hagalaz
You can find what you need and more info on events there. http://docs.jquery.com/Events_(Guide)

[jQuery] Re: Get co-ordinates of click on image

2008-05-30 Thread steve_f
if you pass in the event to the function you can use e.pageX and e.pageY to get the coordinates of the click event So: $(#map).click(function(ev) { mouseX = ev.pageX; mouseY = ev.pageY } On May 30, 12:02 pm, Michael Price [EMAIL PROTECTED] wrote: Hi all, Working on something for a