Welcome to WebmasterWorld Guest from 18.207.134.98

Forum Moderators: open

Message Too Old, No Replies

Simulate image coordinates in a form submit

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

New User

10+ Year Member

joined:Nov 21, 2003
posts:2
votes: 0


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

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

Junior Member

10+ Year Member

joined:Dec 27, 2002
posts:125
votes: 0


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

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

?

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

New User

10+ Year Member

joined:Nov 21, 2003
posts:2
votes: 0


Tried that, sans the ID property. Didn't work... :-(
3:14 pm on Nov 21, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Try this, then:

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