Forum Moderators: open

Message Too Old, No Replies

Simulate image coordinates in a form submit

         

molero

11:08 am on Nov 21, 2003 (gmt 0)

10+ Year Member



Is it in any way possible to simulate the coordinates set by the browser when a user clicks an image to submit a form?
I.e. setting the image_name.x & image_name.y in a Javascript function before doing a submit from same function?

My problem is that I have an ASP page that I cannot change, which looks for the "x" coordinate of the input-image clicked upon receiving a form. And, we do not want to use images for clicking to submit, rather an ordinary link...

Cheers,

-Morten

HocusPocus

12:59 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



Can you just add image.x into a hidden field of the form?

<INPUT NAME="image.x" TYPE="hidden" ID="image.x" VALUE="200">

?

molero

2:11 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



Tried that, sans the ID property. Didn't work... :-(

DrDoc

3:14 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this, then:

<input name="image_x" type="hidden" value="200">