Reply to Re: displaying a page at a specified position

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация