Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > web page re-direct if page/server is up

Reply
Thread Tools

web page re-direct if page/server is up

 
 
Mavrick
Guest
Posts: n/a
 
      01-08-2006
Ok here go's

Main holiday web page is sitting on freeserve, also have hosted IIS
server on fixed IP and fixed dns in my office running for other non
business critical pages as it can be down sometimes due to re-boots
slow bandwidth and power loss etc etc.

On the web page I have a list of available dates but is a static web
page, I have dynamic web views created for back office staff that are
dynamically created from within VB. When dates and bookings change I
hit a button and it creates these pages and served from my web server.
I can get it to create something that can look like the static page but
cant post it to freeserve as I have to be on dial up to freeserve.

What I'd like to do is still have the static page but if my web server
is up and the page is available then re-direct it to this page, if not
send the static one to them.
One big issue is cant run ASP etc code on freeserve so need to do it in
JavaScript, any ideas

Expect the solution to be either in the page that sends to list of
available dates ie

on click
if my server is up
send to my web serve dates.html
else
send to static freeserve
endif

or something within the static html

on load
if my server is up
re-direct to my web server dates,html
else
Carry on here
endif

1 line of thought is catch on error ie. on page that will send to dates
page have a dummy.gif that sits on my server if it cant load dummy.gif
change to <a>.location static else change to dynamic url

not sure if this is a good idea and if it will even work, could do with
some help on code or an example

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update the current web page? (delete current web page + rewrite the page) laryten@yahoo.com Javascript 3 10-12-2006 07:33 PM
How to create a web page class for inhert web page using ASP.NET 1.1 and 2.0? Josh Mitts ASP .Net 3 11-02-2005 06:51 PM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM
RE: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:11 AM
Re: Web page is not available - "The Web page you requested is not available offline. To view this page, click Connect" Natty Gur ASP .Net 0 06-06-2004 05:46 AM



Advertisments
 



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 48 49 50 51 52 53 54 55 56 57