Value of mouses pisition.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Value of mouses pisition.

Post by JellyFish »

How do I get the value of mouse pisition? If this is Javascript then I guess this goes in the client side. Is there a php function that checks to mouses position or returns the mouse pisition?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

PHP is server side JavaScript is client side. You will need to get the mouse x and y via JavaScript and pass it to the PHP page. Prob. the best way would be to use AJAX.
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

okay. Thanks man. Would there be any function that would return the value in JavaScript?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Post Reply