3

Possible Duplicate:
How can I refresh a page with JQuery?

How can I possibly trigger a reload of a page using either something in Django views.py or with Jquery? Basically, I want the page to automatically reload the same way when you click on the URL bar of a web browser and press enter does.

Thanks, Alex

Community
  • 1
  • 1
user941401
  • 323
  • 1
  • 3
  • 8

2 Answers2

18

In javascript you can refresh the page as:

window.location.reload()
Ankur Verma
  • 5,793
  • 12
  • 57
  • 93
4

Don't go overboard with automatic full page refreshes; they're expensive. Consider performing AJAX calls at a reasonable interval to refresh just the information you need.

patrickn
  • 2,501
  • 4
  • 22
  • 21