Questions tagged [reload]

reloading is the process of re-requesting and re-rendering the currently displayed page

Reloading is the process of re-requesting and re-rendering the currently displayed page, triggered for example by JavaScript or the user. Use this tag to mark questions related to forcing the browser to reload or in context of bugs that occur specifically when reloading a page.

2765 questions
103
votes
20 answers

One time page refresh after first page load

I would like to implement a JavaScript code which states this: if the page is loaded completely, refresh the page immediately, but only once. I'm stuck at the "only once": window.onload = function () {window.location.reload()} this gives a loop…
Martin
  • 1,031
  • 2
  • 8
  • 3
101
votes
2 answers

Rails Console: reload! not reflecting changes in model files? What could be possible reason?

Earlier it was working fine. I have been playing little bit config. So may be i have changed some config unknowingly. here is config of environment/development.rb config.cache_classes = false # Log error messages when you accidentally call…
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
85
votes
14 answers

Refresh (reload) a page once using jQuery?

I'm wondering how to refresh/reload a page (or even specific div) once(!) using jQuery? Ideally in a way right after the DOM structure is available (cf. onload event) and not negatively affecting back button or bookmark functionality. Please,…
Pete
  • 853
  • 1
  • 6
  • 4
77
votes
12 answers

A better way to restart/reload Gunicorn (via Upstart) after 'git pull'ing my Django projects

Im looking for something better than sudo restart projectname every time I issue a git pull origin master, which pulls down my latest changes to a Django project. This restart command, I believe, is related to Upstart, which I use to start/top my…
Ben Keating
  • 8,206
  • 9
  • 37
  • 37
76
votes
17 answers

How do I reload a page without a POSTDATA warning in Javascript?

I want to reload a page using: window.location.reload(true); But I receive the POSTDATA warning because the refresh function want to resend previous POST form data. How can I refresh my page without this warning? UPDATED: I have no control of the…
Ricibald
  • 9,369
  • 7
  • 47
  • 62
72
votes
1 answer

vue.js auto reload / refresh data with timer

(New to Vue.js) I fetch data from a get request to display calendar information. I want this to update every 5 minutes. Nothing in the docs about auto reload - how would I go about implementing this? Do I use standard javascript within the file or…
Mike Thrussell
  • 4,175
  • 8
  • 43
  • 59
70
votes
4 answers

Chrome refresh right-click reload options not available

I'm trying to do a hard reload and empty cache in Chrome because a previously loaded site keeps coming up on the localhost port I'm using. The problem is the right-click options seem to have stopped working, ie. nothing happens when I right-click on…
mikeym
  • 5,705
  • 8
  • 42
  • 62
62
votes
8 answers

How to reload a module's function in Python?

Following up on this question regarding reloading a module, how do I reload a specific function from a changed module? pseudo-code: from foo import bar if foo.py has changed: reload bar
Jonathan Livni
  • 101,334
  • 104
  • 266
  • 359
62
votes
11 answers

Ruby on Rails 3 - Reload lib directory for each request

I'm creating a new engine for a rails 3 application. As you can guess, this engine is in the lib directory of my application. However, i have some problems developing it. Indeed, I need to restart my server each time I change something in the…
Nicolas Guillaume
  • 8,160
  • 6
  • 35
  • 44
57
votes
10 answers

Is there a better way to refresh WebView?

Ok. I have looked EVERYWHERE and my little brain just can't understand a better way to refresh an activity. Any suggestions that I can understand would be great. :) Here is the java code: package com.dge.dges; import android.app.Activity; import…
cdg
  • 583
  • 1
  • 5
  • 5
56
votes
5 answers

Change hash without reload in jQuery

I have the following code: $('ul.questions li a').click(function(event) { $('.tab').hide(); $($(this).attr('href')).fadeIn('slow'); event.preventDefault(); window.location.hash = $(this).attr('href'); }); This simply fades a div in…
daveredfern
  • 1,235
  • 4
  • 14
  • 15
52
votes
5 answers

How to force page refreshes or reloads in jQuery?

The code below displays a Google map and search results when you enter an address and hit the submit button. I've been playing with it to try and force the page to completely refresh or reload once you hit the submit button. But I can't get it to…
TimMac
  • 521
  • 1
  • 4
  • 3
48
votes
4 answers

How do I detect a page refresh using jquery?

How might I capture the page reload event? I have a messaging system which loses all its input when the user refreshes the page. I want to use ajax to re-populate, hence my need to detect when the page has been refreshed/reloaded.
sisko
  • 9,604
  • 20
  • 67
  • 139
45
votes
3 answers

Force browser to reload index.htm

how can I force a browser to always load the newest version of index.htm when the page is loaded by entering the URL www.mydomain.com/index.htm or just www.mydomain.com in the browser's address field and pressing enter. I'm trying this in Chrome and…
Linus
  • 1,574
  • 2
  • 15
  • 23
45
votes
7 answers

Reset ipython kernel

I was wondering if there is a way to restart the ipython kernel without closing it, like the kernel restart function that exists in the notebook. I tried %reset but that doesn't seem to clear the imports.
greole
  • 4,523
  • 5
  • 29
  • 49