| re: Reload a html file in an IFrame
JRS: In article <Xns972478AF4E461eejj99@194.109.133.242>, dated Tue, 6
Dec 2005 10:51:48 local, seen in news:comp.lang.javascript, Evertjan.
<exjxw.hannivoort@interxnl.net> posted :[color=blue]
>
>Make the url different each reload, something like:
>
>var dummy=new Date()
>myIfame.location.href='/cgi-bin/mycgi?inputname=inputvalue&dummy='+dummy[/color]
That might work, or it might work only once per day; I'd suggest
var dummy = +new Date()
myIfame.location.href='/cgi-bin/mycgi?inputname=inputvalue&dummy='+dummy
or just
.... = '/cgi-bin/mycgi?inputname=inputvalue&dummy='+ +new Date()
in which the last space is necessary.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links. |