• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

location.reload() and jump to anchor

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try putting this in your webpage:



 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"pppp ooooo", please check your private messages for an important administrative matter.
 
reply
    Bookmark Topic Watch Topic
  • New Topic