Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

location.reload() and jump to anchor

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I am displaying a intermediate page that simply asks user to wait while document is loading in background. once it is loaded the user goes to document(JSP). in the intermediate page i had location.reload() and the url has a #anchor name
when page reloads in IE it is not scrolling down to the desired location. in Firefox it does. Why always IE???
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried

window.location.href = window.location.href;

If there is a caching problem, make sure you are setting the right headers.
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
window.location.href = window.location.href i tried this and did not worked for me.
Everything seems fine . i see the #labelname on the url too. it works fine in firefox though. it shud be some known issue
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by vijaya bacina:
window.location.href = window.location.href i tried this and did not worked for me.
Everything seems fine . i see the #labelname on the url too. it works fine in firefox though. it shud be some known issue



I'm having a similar problem except it works in IE but not in FF. That's a first...

Is there a solution to this yet?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try putting this in your webpage:



 
Marshal
Posts: 67425
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"pppp ooooo", please check your private messages for an important administrative matter.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic