I've not used Ajax in my example above.
If you used Ajax then you wouldn't need to scroll the page.
Ajax techniques let you refresh
parts of the page without reloading the whole thing. Therefore it's much more seamless.
Ajax uses javascript to execute a server side script, get the resulting data and update a DOM element on the page.
The method I showed above will scroll, or rather jump to the anchor named "jumpHere".
From what I assume though, you don't want to necessarily jump to a predefined point on the page but rather to the position the user was at when the page refreshed?
In which case, I see 2 options.
1. Use Ajax as described, this application is precisely what it is for. Perhaps look at using a premade Javascript library such as Prototype.
2. Use javascript to grab the scroll position of the page. Then store that in a cookie and reload the page. When the page loads perform a check for the presence of said cookie and if it exists use Javscript to scroll the page to that position.
--
Tek-Tips Forums is Member Supported. Click Here to donate
<honk>*:
O)</honk>
Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.