On Jun 1, 4:33 pm, Walter Davis <[email protected]> wrote: > On Jun 1, 2011, at 10:19 AM, Eric wrote: > > > On May 31, 5:51 pm, Walter Davis <[email protected]> wrote: > >> On May 31, 2011, at 11:12 AM, bill wrote: > >>> I need the scroll of the div contents only. > > >> You can back into that by using the cumulative offset, and > >> subtracting > >> the document.viewport.getScrollOffsets() from that. > > > Or you may use yourdiv.scrollTop and yourdiv.scrollLeft > > > Eric > > I knew there was something simpler! Is that completely cross-platform? > I ask because I suspect it's native, and therefore not in the > Prototype Element namespace. Does that mean that it's safe to use in > all browser/OS combos?
Not sure about the "all" browser/OS combo, but it works on Windows on IE6+ and FF2+ (and possibly on older versions). I would be interested to know if it works on Safari/Chrome and on OSX/ Linux. Eric > > Walter -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
