Forum: Rails Spinoffs (closed, excessive spam) How implemented browsers viewable area in Prototype ?

Posted by mocambo (Guest)
on 2008-06-25 01:36
(Received via mailing list)
Is there any cross-browser implementation for
browsers viewable area measures,
document scrolling positions,
document scrolling positions,
element positions relative to document.body ?
Posted by T.J. Crowder (Guest)
on 2008-06-25 08:23
(Received via mailing list)
Hi,

Based on this question and some others, I'd suggest you take an hour
to read through the API documents:

http://prototypejs.org/api

You'll find that that hour is repaid many, many times.
--
T.J. Crowder
tj / crowder software / com
Posted by Diodeus (Guest)
on 2008-06-25 18:50
(Received via mailing list)
You should go and down load Kangax's most excellent cheet sheet.
There's a very helpful diagram.

http://prototypejs.org/2008/1/29/prototype-1-6-0-2...
Posted by mocambo (Guest)
on 2008-06-25 21:47
(Received via mailing list)
Very useful diagram. Only problem - there's not any implementation for
getting whole real document height.
Posted by Diodeus (Guest)
on 2008-06-25 23:15
(Received via mailing list)
I cheat. I put a DIV at the bottom of my HTML the just retrieve the
position.
Posted by kangax (Guest)
on 2008-06-25 23:26
(Received via mailing list)
What about getting "Math.max" of document.body/
document.documentElement and viewport width/height?

- kangax
This topic is locked and can not be replied to.