Re: Refresh with JavaScript?

by "Steve Mount" <steve(at)saltyrain.com>

 Date:  Thu, 5 Oct 2000 16:07:27 -0400
 To:  <hwg-techniques(at)hwg.org>
 References:  idx opalintel
  todo: View Thread, Original
Thanks to all who answered... but it still isn't working even with the
location property (which is just what I was looking for).

The problem appears to be that the browser (IE5 in my case) sees the
document as already loaded and does not reload, even when I put an empty or
non-existent anchor in the URL.

I thought of a "Pragma: no-cache" HTTP header, but the file I'm trying to
reload is straight HTML, not CGI, so I don't have access to the HTTP headers
... and Microsoft's site says that IE5 does not understand the META
equivalent.

I wish I could provide a URL for everyone, but this is in development on and
for an intranet...

Any other ideas for forcing the refresh of a frame via javascript are
welcome...

Here is my latest code, if you're interested in seeing what my last attempt
was (this code is in index.html, which establishes the nav and content
frames):

// Force a refresh on the content and nav frames
function doRefresh()
{
  alert("Attempting refresh");
  nav.location = nav.location + "#" + Math.random();
  content.location = content.location + "#" + Math.random();
}



-------------------------------------------------------------
Steve Mount, Software Engineer            steve(at)saltyrain.com
Home Site                            http://www.saltyrain.com
US Constitution Online          http://www.usconstitution.net
Clear your Soul            http://www.anonymousconfession.com
Manager, HWG Logo Team                     http://www.hwg.org


----- Original Message -----
From: "John Murray" <jmnc(at)lis.net.au>
> Invoke the click method ...  clickyarentwe.click()  ... on an empty??
anchor
> tag <a href="rrrr.tml target=myframe id="clickyarentwe"></a>

From: "Darrell King" <darrell(at)webctr.com>
> this.document.location=URL...?  Somethying like that, I think..>?

From: "Jason Boudreault" <theunforgiven(at)home.com>
> <scr!pt language="javascript">
> if (this happens) {
>  window.location="myjavascriptpage.html";
> }
> </scr!pt>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA