Is there any cross-browser implementation for browsers viewable area measures, document scrolling positions, document scrolling positions, element positions relative to document.body ? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
T.J. Crowder
2008-Jun-25 06:23 UTC
Re: How implemented browsers viewable area in Prototype ?
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 On Jun 25, 12:35 am, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote:> Is there any cross-browser implementation for > browsers viewable area measures, > document scrolling positions, > document scrolling positions, > element positions relative to document.body ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
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-cheat-sheet On Jun 24, 7:35 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote:> Is there any cross-browser implementation for > browsers viewable area measures, > document scrolling positions, > document scrolling positions, > element positions relative to document.body ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Very useful diagram. Only problem - there''s not any implementation for getting whole real document height. On Jun 25, 7:49 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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-cheat-sheet > > On Jun 24, 7:35 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote: > > > Is there any cross-browser implementation for > > browsers viewable area measures, > > document scrolling positions, > > document scrolling positions, > > element positions relative to document.body ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I cheat. I put a DIV at the bottom of my HTML the just retrieve the position. On Jun 25, 3:46 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote:> Very useful diagram. Only problem - there''s not any implementation for > getting whole real document height. > > On Jun 25, 7:49 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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-cheat-sheet > > > On Jun 24, 7:35 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote: > > > > Is there any cross-browser implementation for > > > browsers viewable area measures, > > > document scrolling positions, > > > document scrolling positions, > > > element positions relative to document.body ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
What about getting "Math.max" of document.body/ document.documentElement and viewport width/height? - kangax On Jun 25, 5:14 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I cheat. I put a DIV at the bottom of my HTML the just retrieve the > position. > > On Jun 25, 3:46 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote: > > > Very useful diagram. Only problem - there''s not any implementation for > > getting whole real document height. > > > On Jun 25, 7:49 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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-cheat-sheet > > > > On Jun 24, 7:35 pm, mocambo <moca...-S7FoVGKkKTI@public.gmane.org> wrote: > > > > > Is there any cross-browser implementation for > > > > browsers viewable area measures, > > > > document scrolling positions, > > > > document scrolling positions, > > > > element positions relative to document.body ?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---