Re: remembering where the user is on the page??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 4:24 PM -0400 8/1/08, Rod Clay wrote:
I'm creating a website in php and I've noticed that many websites seem to "remember where the user is on the page," so that, for example, the user can click on a link and go to another page, but, when the user comes back to the original page, it is displayed so that the user is looking at the same part of the page that s/he was looking at when s/he clicked the link. This is a mystery to me! How do you create a webpage so that it "remembers" where the user is on the page and takes her/him back to that same place on the page when the user returns? There must be some "trick" to making this happen because a lot of pages do it and a lot don't (like mine! :-( ). But I'd like to make mine do it too!!

Thanks for any light you can shed for me on this "mystery."

I had a similar problem.

I had a page where the user could edit the page. When the user was in edit mode, the page was at one spot and when the user turned off editing, I wanted the user to be back at where he was before editing.

I solved the problem by using javascript and recording the page's position and then forcing the page to scroll there afterwards.

In any case this all client-side.

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux