Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #2040

Re: A question about refresh

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-Id <2706448.dWV9SEqChM@PointedEars.de>
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Fri, 13 May 2011 21:21:30 +0200
User-Agent KNode/4.4.7
Content-Transfer-Encoding 8Bit
Subject Re: A question about refresh
Newsgroups comp.lang.javascript
References <iqjvks$jff$1@dont-email.me>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 37
NNTP-Posting-Date 13 May 2011 21:21:30 CEST
NNTP-Posting-Host a78a036b.newsspool1.arcor-online.net
X-Trace DXC==Xb;;@Ce:\Z=>bdbdS?M0Yic==]BZ:af^4Fo<]lROoRQ<`=YMgDjhgRS0IcA:F;Ph\DZm8W4\YJN\T<8F<]0D<`Y8<kIcZIm?iUP`SFi?QXMQQ
X-Complaints-To usenet-abuse@arcor.de
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:2040

Followups directed to: comp.lang.javascript

Show key headers only | View raw


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


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