File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page is Not Refreshing as Expected

 
Steve Dyke
Ranch Hand
Posts: 1602
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For some reason the following JS will not refresh the page when the window.location.href = window.location.href fires. However, if I do a right click on the page and click Refresh the page reacts okay:

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the location object's reload() method?
 
Steve Dyke
Ranch Hand
Posts: 1602
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Have you tried the location object's reload() method?


As usual while I am waiting for a response I keep looking for a soultion myself(still very limited on my knowledge of web developement and all its diversity). I just tried the reload() method and it worked great. What is the difference in the two ways of doing this. I have some pages where the first method I tried works fine but for some reason not in this case.

Again, thanks for the invaluable help you have been for the last few months.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on your browser's cache settings.

Use Fiddler and look at the difference in the requests.

Eric
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic