Hi Jonathan,

Just a little precision, if the element is not inside any scrolled
element, use like say alex the cumulativeOffset function but the doc
is:
http://api.prototypejs.org/dom/element.html#cumulativeoffset-class_method

In case a parent element of the element you try to find position is
scrolled, just use:
http://api.prototypejs.org/dom/element.html#cumulativescrolloffset-class_method

--
david

On 30 oct, 08:17, "Alex McAuley" <webmas...@thecarmarketplace.com>
wrote:
> http://www.prototypejs.org/api/element/cumulativeoffset
>
> Alex Mcauleyhttp://www.thevacancymarket.com
>
> ----- Original Message -----
> From: "Jonathan Rosenberg" <j...@tabbysplace.org>
> To: <prototype-scriptaculous@googlegroups.com>
> Sent: Friday, October 30, 2009 2:26 AM
> Subject: [Proto-Scripty] Finding the Absolute Position of an Element
>
> Seems like this should be easy, but I can't come up with a solution.
>
> What I want to do is to use Effect.Move to move an element to another
> element's position.  Seems like I need to find the target element's absolute
> position to do this.
>
> So, how do I find an element's absolute position?  Or is there another way
> to do what I want?
>
> --
> Jonathan Rosenberg
> Founder & Executive Director
> Tabby's Placehttp://www.tabbysplace.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to