We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Firefox refresh makes PHP page "jump" to the top - problem with dynamic content? (not IE)

acidgold
acidgold asked
on
Medium Priority
510 Views
Last Modified: 2013-12-12
I am writing a dynamic website that uses PHP/Mysql to load content, yadda yadda. That part is moot.

When I'm viewing my site in firefox, if I scroll halfway down and click refresh, it jumps to the top of the page. This doesn't happen in IE on the same page. Is this some kind of problem with dynamic navigation bars influenced by PHP?

An example is on this site (not mine) scroll down some and click refresh in FireFox:
teamliquid.net

What, in general, causes this to happen? How to large sites like HP.com that are heavy dynamic content stop this from happening?

Thanks!!
Comment
Watch Question

CERTIFIED EXPERT
Commented:
Hi acidgold,

Not entirely sure what would cause this problem, but I don't think that custom scrollbars would do it.  Perhaps it is a result of having some type of onload() javascript that is executing when the page loads... I noticed that the example page you gave uses onload() several times.  If you're really wanting to find out exactly what is causing the problem, the best thing to do would be create a simple test page and gradually add all of your scripts/code to it (testing the refresh effect between additions).  

Hope this helps!  ;)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
I meant dynamic menus (navigation of website) when I said navigation bars.

Either way, I noticed that this problem happens on some of google's pages too. If there is something wrong with a google site, chances are there is actually something wrong with your browser, I learn :)

So I am dismissing the problem for now, although I'll take your advice if it ever REALLY gets me annoyed.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.