473,626 Members | 3,247 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 2886
ch******@hotmai l.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******@hotmai l.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******@hotmai l.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
32630
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 mouse click and the button under the mouse is clicked. Yours, Jonas
2
18823
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 is that the mouse click event does not exist. Does anyone know how to get teh x,y position of the mouse cursor when you click in a groupbox control ?
12
18312
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 need to display the menu, I would contextMenu.Show(buttonCtrl, new Point(0)). But I can't do this for a notifyIcon because notifyIcons aren't controls. How can I display a contextMenu where the cursor is by command only? -mdb
4
2567
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 done when user changes text in any text box and moves to the next text box. This is done in the Text Changed event in java script. The problem that I am facing is that, if the user moves from one text box to another using tab key, the performance...
4
2637
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 wherever the mouse pointer is resting every few seconds.i would like to set up an adjustable timer on it where you can choose to have it click once every 1 to 10 seconds.i'm trying to teach myself vb.net and i'm having trouble on how to code this...
24
11362
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 adjustable timer with it where the mouse can be set to click every so many seconds (1-10).i'm having trouble figuring out how to do and code this.thanks for any help.
3
1277
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. ----------------------------------------------------------- Gary Kahrau
4
5486
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 position. i am usind the win api setcursonpos to set the mouse position assume that the link will always be there at 100, 100. how do i get Windows to create the click event.
5
2375
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 application at run time this list should be generated again as the filtering criteria changes. So I clear the controls(labels) on the panel, get the list from the database and generate the list again. The list is created and it works fine. But sometimes...
1
2905
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" icon on "start menu", I want to invoke a mouse click and open "my computer" page. Tanx in advance. NourAshraf
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7203
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5576
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4094
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4206
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2630
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 we have to send another system
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.