Tilted Forum Project Discussion Community

Tilted Forum Project Discussion Community (https://thetfp.com/tfp/)
-   Tilted Technology (https://thetfp.com/tfp/tilted-technology/)
-   -   [javascript?] redirect if network resource is down (https://thetfp.com/tfp/tilted-technology/82667-javascript-redirect-if-network-resource-down.html)

bunyan29 02-04-2005 10:18 AM

[javascript?] redirect if network resource is down
 
Hey all,

I really am not very gifted with knowledge of java, but I like running my own website for myself and my friends. I sometimes use my university web space, but also have my computer set up as a webserver (for large files that exceed my quota). Sometimes however my computer is off or my cable modem is down. Basically I was wondering if there is a script that will check if my computer is up and running, and if so direct traffic there, otherwise display a secondary "backup" website instead.

Thanks much!

noodles 02-04-2005 02:38 PM

with javascript? nope.
try something like php/asp/perl (maybe), etc. no guarantees, but i could see at least a reasonable way or two you could possibly do it.

franzelneekburm 02-06-2005 07:09 PM

Quote:

Originally Posted by noodles
with javascript? nope.

Well, actually you can - with the XMLHttpRequest library (which really has nothing to do with XML at all, simple HTTP requests), you can get a quick HEAD from a page on your server and display different links depending on the results.

It's not necessarily the best way to do it, but depending on what you need it's probably not the worst either - it will work just as well as any server-side technique.

noodles 02-06-2005 08:51 PM

Quote:

Originally Posted by franzelneekburm
Well, actually you can - with the XMLHttpRequest library (which really has nothing to do with XML at all, simple HTTP requests), you can get a quick HEAD from a page on your server and display different links depending on the results.

It's not necessarily the best way to do it, but depending on what you need it's probably not the worst either - it will work just as well as any server-side technique.

oh, hey, i didn't know that existed (even though i'm not suprised it does). i guess i'll have to remember that :)


All times are GMT -8. The time now is 05:29 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47