0

I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out.

As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect to URL_b?

Any guidance will be very much appreciated.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by NigelT
0

Hi Graphix,

Many thanks for taking the time to reply. Unfortunately a simple redirect won't solve the problem.

Imagine this - an HTML file on a User's PC will be called and;

- it will immediately redirect to URL-A

- if URL-A loads - terrific!

However

- if URL-A fails to load, then switch to URL-B

This is to detect _server failure_ because when such happens there will be no 404 messages, just nothing.

Cheers.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.