Jump to content

differences


birbal

Recommended Posts

is there any diffrences beetween clientX,pageX,screanX?it seems to me that all are use in same purpose but i am not sure.

Link to comment
Share on other sites

Quirksmode has a good write-up . You have to scroll down a bit. His demo makes it immediately clear that these properties are not interchangeable.
I think there is something wrong with his demo. The clientX/Y properties apparently don't work in that demo (for FF), yet I am using them (and no others) in a drag and drop script which I've tested in FF, IE, Chrome, Safari, and Opera and it works in all of them.EDIT: Actually, his demo seems to only use the clientX/Y in IE...
Link to comment
Share on other sites

I didn't actually look at the guts of the demo. :)The snippet on the other page has always worked for me, and I've seen variations of it used in a lot of drag'n'drop scripts. Like yours, it is based on clientX/Y, but also takes scrolling into account.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...