Re: Retaining scroll position after asynchronous refresh
| From: | Hans Åhlin | Date: | Fri, 23 Jul 2010 14:48:06 +0000 |
| Subject: | Re: Retaining scroll position after asynchronous refresh | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307113@lists.php.net to get a copy of this message | ||
I't was a long time ago when i programed in js but the first thin that pops
up in my mind is that there is a function where you can read and set the
values of the scrollbars.
I found this when I googled it:
http://www.eggheadcafe.com/community/aspnet/3/10002280/scroll-positions.aspx
<http://www.eggheadcafe.com/community/aspnet/3/10002280/scroll-positions.aspx>
http://www.daniweb.com/forums/thread60189.html
**********************************************
Hans Åhlin
Tel: +46761488019
icq: 275232967
http://www.kronan-net.com/
irc://irc.freenode.net:6667 - TheCoin
**********************************************
2010/7/23 Larry Martell <larry.martell@gmail.com>
> Hello all-
>
> I have a php script that generates a web page with a bunch of
> scrollable frames, and then asynchronously refreshes the page. If the
> user has scrolled down in any of the frames, when the refresh occurs
> it has scrolled back to the top of all the frames. Is there a way I
> can retain the scroll position so after the refresh the frames are
> shown at the same location as before the refresh? I have googled and
> googled for this, but everything I find is ASP or C# or Java. My stuff
> is straight php/html. How can I do this with that?
>
> TIA!
> -larry
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>