Click to See Complete Forum and Search --> : Firefox rescroll to top when refreshing or back button


Beer_NutZ
07-29-2005, 06:50 PM
Who knows what code causes Firefox to rescroll my pages to the very top of the browser window when reloading the page or hitting the back button?

Say for example you're on my web page... you scroll down a bit, click a link, then click the back button and WHAMO! Firefox scrolls you to the top of the page.

This happens on three of my domains, on two different servers, but only on my PHP pages. My html pages don't rescroll.

/at my wits end

rock
07-30-2005, 02:39 PM
First, is this unique to Firefox?

I suspect it has something specific to do with how it renders PHP pages in that it cannot determine or track where you had scrolled to before.

I4one
07-30-2005, 11:55 PM
hmmm... I'm using Moz suite (set as Default browser) and that behavior doesn't happen here at Sharkys (this is considered php here...right ? ) - though I've never would've noticed, as I always open New Tabs when clicking links. But -I just tried it and same page spot.

Could try to Validate the HTML and CSS

Another guess is you're not Caching memory of page data
type about:cache in the location bar

Handyman
07-31-2005, 12:06 PM
Well, this really shouldn't be a problem within any PHP code. The client browser will never even see the PHP code as it is all processed on the server. The browser should render the page as any other HTML page since the the browser will output based on the content-type header rather than the extension on the file.

Do you have any pages of example you can point us to?