Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #2040
| Message-Id | <2706448.dWV9SEqChM@PointedEars.de> |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2011-05-13 21:21 +0200 |
| Subject | Re: A question about refresh |
| Newsgroups | comp.lang.javascript |
| References | <iqjvks$jff$1@dont-email.me> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
sheldonlg wrote: > I have a page that gathers information from a database and shows a > status. Asynchronously, some other process modifies that status at a > shortly later time. > > I have placed a button on the page to do a refresh of the page. I use > location.reload() as the onClick method. > > Here are the results: > 1 - Clicking the button does not show the changed status > 2 - Hitting F5 does not show the changed status > 3 - Clicking the refresh button on the menu bar does not show the > changed status > 4 - Clicking the arrow to the right of the address field DOES show the > changed status. If it were not for 2, 3, and 4, window.location.replace(document.URL, true)¹ would have sufficed. However, because of those, you need to apply <http://www.mnot.net/cache_docs/>. > I would like to know how I need to code my refresh button on the page so > that it shows the changed status like #4 above. Any help will be > appreciated. This problem cannot be solved with client-side scripting alone. PointedEars ___________ ¹ Always use qualified references: window.location, window.open(…), window.alert(…), etc. -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A question about refresh sheldonlg <sheldonlg@thevillages.net> - 2011-05-13 15:08 -0400
Re: A question about refresh sheldonlg <sheldonlg@thevillages.net> - 2011-05-13 15:10 -0400
Re: A question about refresh Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-13 21:24 +0200
Re: A question about refresh Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-13 21:28 +0200
Re: A question about refresh sheldonlg <sheldonlg@thevillages.net> - 2011-05-13 16:28 -0400
Re: A question about refresh Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-14 09:31 +0200
Re: A question about refresh Jeff North <jnorthau@yahoo.com.au> - 2011-05-14 10:08 +1000
Re: A question about refresh Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-13 21:21 +0200
Re: A question about refresh Luuk <Luuk@invalid.lan> - 2011-05-14 09:50 +0200
Re: A question about refresh Luuk <Luuk@invalid.lan> - 2011-05-14 10:22 +0200
csiph-web