What I'm trying to do:
I have a HTML page on the local (file-)system. If it get's loaded, some JS needs to decide if a (online) address is reacheable, and load that or another local page accordingly...
var rimg = new Image(remoteUrl);
kind of thing...
I'm open for suggestions on this.
This seems to work ok;
<title>On-/Offline Tester </title>
<body onload="location.href=switchUrl;" >
<h1>On-/Offline Tester </h1>
#### in the switchUrl.js ####
switchUrl = "http://remote.tld/index.html";
No, that's too easy, isn't it? the remote *.js file is CACHED by IE and others!!!
Ah, Danke Andi, so geht's:
var randNum = Math.random ();
Replacing the second script tag with the static *.js URL by an dynamic' URL prevents caching nicely :)
[ by Martin>]
similar entries (vs):
- aus der Reihe: Traumwind 'stupid but entertaining Pih─htschPih tricks'™ (# 13%)
- rss encoding... (# 10%)
- more fun than any number of wap phones in a trash-bin (# 8%)
- who ever you are.. (# 8%)
similar entries (cg):
no similar entries (yet?)