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 Reply-To: Thomas 'PointedEars' Lahn 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: 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 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 . > 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