[PHP] Retaining scroll position after asynchronous refresh NOT PHP
At 6:31 AM -0600 7/23/10, Larry Martell wrote:
>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
-larry:
This not really a PHP problem, but rather a javascript problem. After
all, the problem surfaces client-side, right?
So, to not offend this list with a non-PHP solution, I am sending you
the code privately.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Login to post comments
[PHP] Retaining scroll position after asynchronous refresh NOT P
On Fri, Jul 23, 2010 at 10:09 AM, tedd wrote:
> At 6:31 AM -0600 7/23/10, Larry Martell wrote:
>
>> 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?
>>
>
how are you doing the refresh? a location header or http meta tag? both of
those are gross imo - try ajax and i bet your problem goes away.
-nathan
[PHP] Retaining scroll position after asynchronous refresh NOT P
On Fri, Jul 23, 2010 at 12:09, tedd wrote:
>
> This not really a PHP problem, but rather a javascript problem. After all,
> the problem surfaces client-side, right?
>
> So, to not offend this list with a non-PHP solution, I am sending you the
> code privately.
Well, it *is* Friday....
P.S. - Tedd, when you get a chance, call my cell phone really quick, please.
--
UNADVERTISED DEDICATED SERVER SPECIALS
SAME-DAY SETUP
Just ask me what we're offering today!
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php