HighDots Forums  

Re: How to use event.clientX and clientY

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: How to use event.clientX and clientY in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Cornford
 
Posts: n/a

Default Re: How to use event.clientX and clientY - 11-02-2003 , 10:42 PM






"TheKeith" <no (AT) spam (DOT) com> wrote

Quote:
Can someone tell me why this isn't working?

snip

Isn't event.clientX and clientY supposed to return an
integer value? If so, why isn't this working? Thanks.
How are you defining "isn't working" in this context? As this (almost)
IE only code is doing exactly what it is being asked to do in IE 6.

Richard.




Reply With Quote
  #2  
Old   
TheKeith
 
Posts: n/a

Default Re: How to use event.clientX and clientY - 11-02-2003 , 10:48 PM







"Richard Cornford" <Richard (AT) litotes (DOT) demon.co.uk> wrote

Quote:
"TheKeith" <no (AT) spam (DOT) com> wrote in message
news:R_ydneH0ofLwXTiiRVn-ug (AT) giganews (DOT) com...
Can someone tell me why this isn't working?

snip

Isn't event.clientX and clientY supposed to return an
integer value? If so, why isn't this working? Thanks.

How are you defining "isn't working" in this context? As this (almost)
IE only code is doing exactly what it is being asked to do in IE 6.

Richard.


Well, I expect it to write the x position and y position of the pointer, at
the time of my clicking the link, to the text fields. Why is this an almost
only ie code? thanks.




Reply With Quote
  #3  
Old   
Richard Cornford
 
Posts: n/a

Default Re: How to use event.clientX and clientY - 11-03-2003 , 12:27 PM



"TheKeith" <no (AT) spam (DOT) com> wrote

<snip>
Quote:
How are you defining "isn't working" in this context? As this
(almost) IE only code is doing exactly what it is being asked
to do in IE 6.
snip
Well, I expect it to write the x position and y position of the
pointer, at the time of my clicking the link, to the text fields.
And that is exactly what it does on my IE 6 (with the caveat that the X
and Y coordinates are relative to the upper left corner of the inner
border of the client area).

Quote:
Why is this an almost only ie code? thanks.
The function called by the event handling code uses the global
identifier "event" and originally only IE browsers supported a global
event object, more recently, in a bid for compatibility with IE, some
other browsers have implemented global event objects, but not all.

Richard.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.