pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: Getting Image coordinates when mouse is clicked on the
Date: Fri, 03 May 2002 11:53:50 -0600
Message-ID: <B8F82ACE.DFED%hierophant@pcisys.net> (raw)
In-Reply-To: <Pine.BSO.4.40.0205031836090.28111-100000@library.iisc.ernet.in>

on 5/3/02 7:26 AM, arun@library.iisc.ernet.in purportedly said:

> Hello,
> Is there any way to get the coordinates value, when an image is clicked.
> Say I have created an image link using "mapedit".Instead of linking to
> any URL, I want to  link to a php file, which returns a value. This value
> should be stored in a file against the corresponding coordinate of the
> image.
> I.e when a mouse is clicked on a image, its coordinates value should
> be stored in a variable and the corresponding function should be called
> which returns a variable. Both these values should be stored in a
> file.
> 
> Regards
> Arun

If I understand you correctly, you simply want your script to know the exact
coordinates of the click. You could use JavaScript, I am pretty sure, or a
less elegant solution is use an INPUT field type IMAGE. If this type of form
field s give a name, the clicked coordinates are sent as fields "NAME.x" and
"NAME.y" (where NAME is the name of the field).

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"




view thread (3+ messages)  latest in thread

Message-ID: <B8F82ACE.DFED%hierophant@pcisys.net>
Permalink:  ../B8F82ACE.DFED%25hierophant@pcisys.net/
Also on:    postgresql.org/message-id/B8F82ACE.DFED%hierophant@pcisys.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: hierophant@pcisys.net
  Subject: Re: Getting Image coordinates when mouse is clicked on the
  In-Reply-To: <B8F82ACE.DFED%hierophant@pcisys.net>
  References: <Pine.BSO.4.40.0205031836090.28111-100000@library.iisc.ernet.in> <B8F82ACE.DFED%hierophant@pcisys.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox