On Wednesday 08 March 2006 12:27, Jeremy Kitchen wrote: > On Wednesday 08 March 2006 12:24, Ryan Gahl wrote: > > You should be able to do this by changing the div's .scrollTop value via > > javascript (maybe just pick a very large number to ensure bottom is hit, > > like 10,000).
what I ended up doing is this:
<div id="wrap" style="overflow:auto">
<div id="inner"></div>
</div>
then in my javascript I did:
$('wrap').scrollTop = $('inner').offsetHeight;
> good call :) Now to figure out if the user is actually scrolled all the
> way to the bottom (I figure I won't force a scroll if they aren't at the
> bottom, signalling to me that they've scrolled themselves :)
I went the lazy route and added a checkbox ;)
Thanks again for the help!
-Jeremy
--
Jeremy Kitchen ++ [EMAIL PROTECTED]
In the beginning was The Word and The Word was Content-type: text/plain
-- The Word of Bob.
pgpP6izFFJfJu.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
