On Dec 7, 10:58 am, Richard Quadling <rquadl...@gmail.com> wrote: > On 7 December 2010 15:34, doug <douglass_da...@earthlink.net> wrote: > > > > > > > From searching and looking at the API docs, doesn't look like > > prototype is able to do this, but I thought I would ask anyway in case > > some one has an idea. > > > I have a generic form generator library and in the forms generated, I > > need to be able to absolutely position a "help" div next to an image > > of a question mark. > > > I need this to work in the following cases: > > > 1. the form is on a page by itself > > 2. the form is in a lightbox (which is absolutely positioned) > > 3. the form is in a scrollable div on a page by itself > > 4. the form is in a scrollable div INSIDE a lightbox (which is also > > scrollable) > > > Basically, this requires me find a uniform way to get the absolute > > position of the question mark image. > > > positionedOffset works for 1 and 2. For 4 I have to use > > positionedOffset along with cumulativeScrollOffset and do some math. > > Is there a way to get the absolute position no matter which one of > > these cases? > > > thanks. > > I thinkhttp://api.prototypejs.org/dom/Element/Layout/may answer your > questions. > > -- > Richard Quadling > Twitter : EE : Zend > @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
I looked at this, but I'm not sure how this would allow me to get the position of an element. Can you elaborate? Also, one more thing I didn't mention. With the absolutely positioned lightbox, it is acceptable that I get the position of the element with respect to the lightbox. Although if I can get it with respect to the entire page, that would be fine too. -- 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-scriptacul...@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.