|
Posted by Andy Dingley on September 19, 2006, 9:29 am
Please log in for more thread options
stefano.troiani@gmail.com wrote:
> My question is, is there a way to remember the div position once
> clicked in one link below the screen and the page has been recharged?
Yes, but it's tricky and involves JavaScript.
Only URLs (bookmarks etc.) are "memorable" (I'm ignoring <form>s for
the moment) Position of user controls isn't memorable.
Your solution is to use JavaScript hooked to the scrolling events of
the <div> to then create a modified URL. Don't take too long doing it,
and don't do it too often, or else it will be unresponsive. Shortly
after scrolling has finished is fine.
Look at google maps for an example, although their "scrolling" is more
complex and they require a manual action to generate the bookmark.
|