473,499 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mouse click

HI
I am working on a project for the university, I need to know if there
is a method in php that returns the x,y of the mouse click. cos I need
it to allocate some positions on a map of my city.

thanx in advance
shameram sadaki

Mar 19 '06 #1
3 2874
ch******@hotmail.com wrote:
HI
I am working on a project for the university, I need to know if there
is a method in php that returns the x,y of the mouse click. cos I need
it to allocate some positions on a map of my city.

That's client side stuff, you have to capture this in JavaScript.

--
Ian Collins.
Mar 19 '06 #2
ch******@hotmail.com wrote:
HI
I am working on a project for the university, I need to know if there
is a method in php that returns the x,y of the mouse click. cos I need
it to allocate some positions on a map of my city.

thanx in advance
shameram sadaki


Yes, if you're talking about a server-side image map. If you have the
following on a page:

<form>
<input type="image" name="cmap" src="campus_map.jpg">
</form>

when the user clicks on a spot on the picture, the browser would sent
the variable pair cmap.x and cmap.y to the server. These two can be
retrieved in PHP from the $_GET array at the indices "cmap_x" and
"cmap_y".

Server-side image map is a somewhat outdated technique however. People
nowadays usually use client-side image maps instead.

Mar 19 '06 #3
If you want to contact the web server with the coordinates:
http://www.w3.org/TR/html40/struct/o...tml#adef-ismap

If you want to handle everything on the client, use USEMAP instead.

ch******@hotmail.com wrote:
HI
I am working on a project for the university, I need to know if there
is a method in php that returns the x,y of the mouse click. cos I need
it to allocate some positions on a map of my city.

thanx in advance
shameram sadaki

Mar 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
32598
by: BadOmen | last post by:
I want my program to send a mouse click to the window at the current mouse position, how do I do that? Example: I have my mouse over a button in Word and then my program is sending the left...
2
18748
by: Serge | last post by:
Hi, in my windows.forms application I have added a goupBox control to my windows.form. Now I want to know the x,y-position from the mouse cursor when I click on the groupBox. The strange thing...
12
18274
by: mdb | last post by:
My app has a notify icon in the systray. I want the left mouse click to initiate a menu, and a right-mouse click to do something else. Normally, for a button, I would listen to MouseDown and if I...
4
2554
by: Prateek | last post by:
Hi All, I have created an ASP.NET page that basically consists of a table having text boxes in all cells. The table is created using client side java script. There are some calculations being...
4
2614
by: aam | last post by:
i'm trying to find the coordinates of a certain button on a page that i'm viewing so i can program the mouse to click on it automatically every so many seconds. either that or have the mouse click...
24
11340
by: aam | last post by:
hi, im trying to figure out how i can program the mouse to automatically click on a button of a web page that i'm viewing.i do not have control over the page.i would also like to set up an...
3
1258
by: Gary Kahrau | last post by:
How do I programatically apply a click to a particular row and column 0 of a datagrid? I want to do this in code as if the user did a mouse click on the leftmost column. ...
4
5471
by: Abhishek | last post by:
Hi, I have a activex web browser embedded in a windows form and on a click of a form button i need the mouse to go the position for example 100, 100 and click the link that will be there on that...
5
2354
by: moonie | last post by:
I have an msn style c# windows application with a form and panel on it. A news list is drawn from the database and dynamically added via labels, link lables during form loading. In this...
1
2894
by: hamidnourashraf | last post by:
I'm wondering if it's possible to invoke a mouse click anywhere. I don't mean invoke a mouse click event but, the actual mouse click itself. For instance, If I had my mouse over the "my computer"...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1429
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
307
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.