P
petermichaux
Hi,
It seems like determining element position in a web page is a difficult
task. In the position reporting source code I've looked at there are
special fixes for at least some versions of Safari and Opera. I am
doing a lot of dragdrop experimentation and in some situations need a
position reporting function. The function doesn't need to report the
positions of exotic elements like images in button elements; however, I
would like a position reporting function that can at least handle
combinations of scrollable elements and tables.
I've been testing these libraries
* David Flanagan's JavaScript 5th ed, p362
* Yahoo! UI v0.11.3
* Matt Kruze's current Object Position library
* Prototype.js v1.5.0_rc1
with the two examples in this page
<URL: http://peter.michaux.ca/temp/position/scale.html>
in the following mainstream browsers
OS X 10.4
* Safari 2
* Opera 9
* Firefox 1.5
Win 98
* IE 6
* IE 5.5
All of the position reporting functions break in at least one of my
test examples.
I don't understand the 2px IE weirdness in the test results. Any ideas?
Does anyone know which versions of Opera and Safari required special
attention? Does anyone have position reporting code that doesn't
browser sniff and also works in these versions of Opera and Safari?
Given the influence this group has (or should have) on JavaScript
practices, I think it incredibly beneficial if the group could offer
the world a position reporting function that works at least up to a
listed set of medium difficulty cases.
Thank you,
Peter
It seems like determining element position in a web page is a difficult
task. In the position reporting source code I've looked at there are
special fixes for at least some versions of Safari and Opera. I am
doing a lot of dragdrop experimentation and in some situations need a
position reporting function. The function doesn't need to report the
positions of exotic elements like images in button elements; however, I
would like a position reporting function that can at least handle
combinations of scrollable elements and tables.
I've been testing these libraries
* David Flanagan's JavaScript 5th ed, p362
* Yahoo! UI v0.11.3
* Matt Kruze's current Object Position library
* Prototype.js v1.5.0_rc1
with the two examples in this page
<URL: http://peter.michaux.ca/temp/position/scale.html>
in the following mainstream browsers
OS X 10.4
* Safari 2
* Opera 9
* Firefox 1.5
Win 98
* IE 6
* IE 5.5
All of the position reporting functions break in at least one of my
test examples.
I don't understand the 2px IE weirdness in the test results. Any ideas?
Does anyone know which versions of Opera and Safari required special
attention? Does anyone have position reporting code that doesn't
browser sniff and also works in these versions of Opera and Safari?
Given the influence this group has (or should have) on JavaScript
practices, I think it incredibly beneficial if the group could offer
the world a position reporting function that works at least up to a
listed set of medium difficulty cases.
Thank you,
Peter