Posted by John Dunlop on 11/08/06 10:32
mantrid:
> i have a form about half way down a web page, which posts criteria for the
> WHERE part of an sql which then returns the results at the bottom of the
> page.
> Trouble is when the page reloads it goes to the top of the page again so the
> results are not visible and the user is sometimes unaware that anything has
> happened.
I assume that you are redirecting from the processing page (the page
pointed to by your form's action attribute) back to the page the form
is on using a Location header. You can add a fragment to the URL
specified in the Location header (this violates HTTP/1.1 but it is
mentioned in the errata) so that when the user-agent redirects, it
redirects to the anchored position.
--
Jock
[Back to original message]
|