clarissa1996
Technical User
Hi,
I have a webpage installed on two different servers.
To improve system availability, if the first server is not available the client must be redirected to the second server.
To this purpose I have the following javascript installed on a third (high-available server).
The trick is to test if the file image.gif exists on the first server. If it's not possible to download this file, after 10 seconds the client is redirected to the second server.
This script works ok, but it seems that on certain clients it doesn't works (the client is always redirected to the second server).
I cannot debug this situation because I have no access to the client.
My question is:
is there a secure javascript to do this job ?
Thanks. Clarissa
------------------------------------------------------------
function host1() {
location.href = "}
function host2() {
location.href = "}
window.setTimeout("func2()", 10000);
document.write('Wait ...');
document.write('<img src=" onLoad="func1()"');
</script>
I have a webpage installed on two different servers.
To improve system availability, if the first server is not available the client must be redirected to the second server.
To this purpose I have the following javascript installed on a third (high-available server).
The trick is to test if the file image.gif exists on the first server. If it's not possible to download this file, after 10 seconds the client is redirected to the second server.
This script works ok, but it seems that on certain clients it doesn't works (the client is always redirected to the second server).
I cannot debug this situation because I have no access to the client.
My question is:
is there a secure javascript to do this job ?
Thanks. Clarissa
------------------------------------------------------------
function host1() {
location.href = "}
function host2() {
location.href = "}
window.setTimeout("func2()", 10000);
document.write('Wait ...');
document.write('<img src=" onLoad="func1()"');
</script>