Cross-Browser Mouse Coordinate Tracking: Impossible?

  • CazpianXI
  • Proficient
  • Proficient
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 285
  • Status: Offline

Post January 20th, 2004, 9:02 am

I need to create a generic, simple JavaScript that detects the mouse coordinates of the user. Such a script should be able to work with Netscape, Explorer, Opera, Konqueror, iCab, and many other browsers that support JavaScript. However, I found that Opera, Konqueror, iCab, and several other browsers have failed to follow the current JavaScript standards on mouse coordinate tracking.

Does anyone know how I can work around this problem?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 20th, 2004, 9:02 am

  • twiztit_momma
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jan 01, 2004
  • Posts: 346
  • Loc: SanLeon Tx
  • Status: Offline

Post January 20th, 2004, 12:26 pm

this is all i could find on the subject,


http://evolt.org/article/Mission_Imposs ... rmat=print

---------------------------------------------
Edited by ATNO

twiztit_momma - I changed your quote to a link. It wasn't appropriate to paste a whole discussion thread. In addition, you need to read the second sentence of the linked page:

"This article is the property of its author, please do not redistribute or use elsewhere without checking with the author."
  • CazpianXI
  • Proficient
  • Proficient
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 285
  • Status: Offline

Post February 3rd, 2004, 2:37 pm

Thanks... too bad all browsers don't follow the standard! If they did, it would make our lives much easier...
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Joined: Jan 14, 2004
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada
  • Status: Offline

Post February 3rd, 2004, 9:19 pm

cwp wrote:
I need to create a generic, simple JavaScript that detects the mouse coordinates of the user. (that workds for all browsers)


What about that old fashioned image map to CGI technique? The browser sends back the mouse coordinates and the CGI figures out where the click was.

Just a thought... since JS != cross platform.
  • CazpianXI
  • Proficient
  • Proficient
  • User avatar
  • Joined: Dec 22, 2003
  • Posts: 285
  • Status: Offline

Post February 7th, 2004, 11:59 am

rjmthezonenet wrote:

What about that old fashioned image map to CGI technique? The browser sends back the mouse coordinates and the CGI figures out where the click was.


Well, that would work for some things... but I'm trying to make a script that allows users to drag and drop layers, so I need to use JavaScript to give the "real-time" effect.

That Evolt article seems to do the trick. The code it gave works with IE and Netscape... but for some reason it doesn't work with Mozilla. I'll have to play around with it some...

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 119 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.