2

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
  • 313
  • 1
  • 3
  • 8

2 Answers2

17

In javascript you can refresh the page as:

window.location.reload()
Ankur Verma
  • 5,527
  • 10
  • 49
  • 89
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,443
  • 4
  • 21
  • 21