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
42
votes
4 answers

How to force a page to reload if all what was changed in url is hash?

I am trying to reload current page with different url hash, but it doesn't work as expected. (Clarification how I want it to work: Reload the page and then scroll to the new hash.) Approach #1: window.location.hash = "#" + newhash; Only scrolls to…
serg
  • 109,619
  • 77
  • 317
  • 330
41
votes
2 answers

How to stop chrome from caching

I need to force the browser to reload the previous page from the server when the user presses the back button. I've added the following to my response headers: Cache-Control: no-cache, must-revalidate Expires: -1 This seems to work for most…
Craig Norton
  • 1,047
  • 1
  • 10
  • 23
41
votes
4 answers

Follow buffer in emacs, a la tail -f or less +F

I would like to analyze a log file in emacs while it is growing. Is it possible to have a buffer follow a file? It is not needed that the file be editable (which raises all sort of questions): read-only mode would suffice. My problem in more detail…
blueFast
  • 41,341
  • 63
  • 198
  • 344
40
votes
1 answer

Python3 - reload() can not be called on __import__ object?

Ok so for a number of reasons, I've been using s = __import__('parse') for the longest time in Python2, now I sorta need to being my transitions to Python3 for certain projects (mainly due to SSL). But there's no reload() equivilant in Python3 as…
Torxed
  • 22,866
  • 14
  • 82
  • 131
36
votes
11 answers

Changing UITableView's section header/footer title without reloading the whole table view

Is there any way to reload the section header/footer of a table view without calling [tableView reloadData];? In fact, I want to show the number of cells in a table view's section in its section footer. The table view is editable and I delete or…
Ali
  • 829
  • 1
  • 8
  • 9
36
votes
3 answers

Node.js: how to reload module

I am new to NodeJS so probably I am doing some mistakes. I have written a bunch of code in an external file called myapp. I start NodeJS for windows and from the interpreter window I type: var myapp = require('d:/myapp.js'); then I can use my…
az1mov
  • 469
  • 1
  • 4
  • 3
36
votes
10 answers

AngularJS: Change hash and route without completely reloading controller

I have a controller, with a route like this: #/articles/1234 I want to change the route without completely reloading the controller, so I can keep the position of other stuff in the controller constant (lists that scroll) I can think of a few ways…
doubledriscoll
  • 1,179
  • 3
  • 12
  • 21
32
votes
4 answers

Python script scheduling in airflow

Hi everyone, I need to schedule my python files(which contains data extraction from sql and some joins) using airflow. I have successfully installed airflow into my linux server and webserver of airflow is available with me. But even after going…
Abhishek Pansotra
  • 947
  • 2
  • 13
  • 17
31
votes
4 answers

Make Visual Studio auto reload solution when project files change

On the current project I am working on, there is, at the moment, a large churn of code, which means updating from source control can mean at times many csproj file changes. As we all know, VS2010 doesn't have a "Reload all" button, but you must…
Ray Booysen
  • 28,894
  • 13
  • 84
  • 111
31
votes
5 answers

Refresh page and run function after - JavaScript

I'm trying to refresh a page and then run a function once the refresh has been completed. However the code I have now, runs the function and then it only refreshes it, meaning I lose what the function did. Is there a way to solve this? My…
Lost Soul
  • 345
  • 1
  • 3
  • 8
31
votes
2 answers

SIGHUP for reloading configuration

According to signal(7), SIGHUP is used to detect hangup on controlling terminal or death of controlling process. However, I have come across a lot of OSS daemons(services) where SIGHUP is used to initiate a reload of configuration. Here are a few…
HAL
  • 3,888
  • 3
  • 19
  • 28
30
votes
4 answers

How to Reload a UITableView While I am Looking at It

When I have a UITableView as part of the visible view controller, how can I reload it so that the data I am looking at changes to the new data. Just calling reload doesn't seem to refresh the data until I scroll it.
Genericrich
  • 4,611
  • 5
  • 36
  • 55
30
votes
6 answers

Google reCaptcha reset doesn't work

I want to reset Google reCaptcha widget when I submit my form via AJAX and have some input errors or form is sent. I'm using multiple widgets on the same page so I render these widgets explicitly. My HTML code:
quarky
  • 710
  • 2
  • 13
  • 36
29
votes
4 answers

How to prevent an iframe from reloading when moving it in the DOM

I have an iframe loaded with some content. I would like to move it inside the DOM without causing a refresh (I like the content inside it, I want to keep it). I'm doing some basic node.appendChild(iframe) to do the job. Is that possible? Thanks in…
Savageman
  • 9,257
  • 6
  • 40
  • 50
29
votes
7 answers

Javascript: How to truly reload a site with an anchor tag?

Take this code snippet for example: window.location.href = 'mysite.htm#images'; Already being on the site mysite.htm and triggering the reload thru location.href won't reload the page but jump to the anchor named within the URL. I need a mechanism…
aefxx
  • 24,835
  • 6
  • 45
  • 55