Questions tagged [page-refresh]

Questions dealing with causing or preventing the re-rendering of an HTML document by a web browser.

1164 questions
9
votes
3 answers

navigator.geolocation getCurrentPosition not updating in Chrome Mobile

I have created a site (can be accessed at http://dev.gkr33.com) which is designed for a smartphone and attempts to use the navigator.geolocation api and grab your position via getCurrentPosition. This seems to work initially, however if you try to…
troozers
  • 213
  • 2
  • 7
8
votes
1 answer

Blazor server page with parameters throwing "404 not found " on manual refreshes

I have a Blazor Server app with a page that takes in parameters in the uri. When I click on an anchor tag that has the route setup to hit that page with params (like below) the link works fine, and the page loads.
CoderLee
  • 3,079
  • 3
  • 25
  • 57
8
votes
1 answer

Prevent WebView fragment from reloading page on screen rotation

I know this has been asked too many times and that SO is full of similar questions. I went through most of them and I've been researching this issue for a couple of days and I have yet to find the definitive solution. I could easily avoid all this…
rfgamaral
  • 16,546
  • 57
  • 163
  • 275
8
votes
2 answers

page refresh causing user to get log out automatically in angular js

I have a Login API which I am using it in my service function logInToService(callback, errback, login, password, rememberLogin) { var url = "User/Login"; var authorizationHeader = {'Authorization': "Basic " + login + ":" +…
shreyansh
  • 1,637
  • 4
  • 26
  • 46
7
votes
2 answers

Force a page refresh when page visited from back button

How can I force a page refresh of page 1 when a user returns to it from page 2 by pressing the back button? Are there vbscript or javascript approaches or is it down to set the 'no cache' somehow?
Mark_54
  • 1,273
  • 4
  • 15
  • 21
7
votes
2 answers

After page refresh jquery stops working

That's realy strange issue, i have quite a lot of plugins and custom scripts in my page and normaly it all works just fine, but if i would try to refresh page, not just click on some link, some of my scripts just stops working, mostly the ones who…
Linas
  • 4,380
  • 17
  • 69
  • 117
7
votes
1 answer

How to detect page is refreshed on vue?

I try like this : created() { window.addEventListener('beforeunload', function(event) { event.returnValue = 'Write something' this.$router.push('/') }) }, the message like this : If I click cancel, it will…
moses toh
  • 12,344
  • 71
  • 243
  • 443
7
votes
2 answers

PRIMEFACES - How to refresh a from clicking a ?

I'm considering this showcase: http://www.primefaces.org/showcase/ui/dynamicImage.jsf in particular the sub-case "GraphicText on-the-fly". My problem is implementing an extended version of this sub case with the addition of a . When the button is…
iljkr
  • 161
  • 1
  • 1
  • 8
7
votes
2 answers

Problems refreshing angularjs changes on production server

I have a recurring issue that occurs when I make changes to my angularjs app. The problem is that I have to refresh the page if I want to seed the changes that I have made. This is a problem, because I don't want my users to have to refresh the page…
Chris Paterson
  • 1,129
  • 5
  • 21
  • 31
6
votes
2 answers

How to do a forced page refresh using selenium webdriver?

In my automation, at one point I have to refresh the page to get the updated page content. But during the refresh the webpage is asking for a confirmation to resend the data (basically an alert is displayed on the page). Even though I switched the…
6
votes
2 answers

Ajax loading for complex projects

My problem is actually not the ajax loading itself, more the capability to load it without javascript. I mean, I cope easily when I code my whole project just based on ajax-availability OR just without the use of ajax. //EDIT: Although Arend already…
Anonymous
  • 3,679
  • 6
  • 29
  • 40
6
votes
5 answers

page refresh is firing the event again

IN asp.net when I submit form and refresh it, the data resubmitted again? Is there a way in C# to trap the page refresh event on page load??
Paras
  • 2,997
  • 6
  • 35
  • 46
6
votes
1 answer

Determine when a page is refreshed or reloaded

I have read several StackOverflow answers about refreshing and/or reloading a page and how to determine. Check if page gets reloaded or refreshed in JavaScript and Check if page gets reloaded or refreshed in JavaScript in particular. Both of…
6
votes
2 answers

Tampermonkey play sound when page changes?

Basically, there is a specific website I visit that I keep a userscript auto-refresh set on a timer. This specific page changes content every now and then upon being refreshed. I want a sound to be played whenever the page gets refreshed and any…
6
votes
1 answer

Javascript location.reload() in setInterval function is not working as expected

I'm making a chrome extension whose sole purpose is to prevent session timeout.For that I'm using this command: setInterval(function(){ location.reload(); }, 10000); What I'm expecting is a page refresh for every 10 seconds which is not…
Bharat
  • 1,044
  • 15
  • 34
1 2
3
77 78