Help with code for conditional redirect based on ALIVE status

Discussion in 'Javascript' started by andysideas, Feb 7, 2006.

  1. andysideas

    andysideas Guest

    I am trying to set a link on our Intranet server to another onsite
    system.

    I want to send people to a page, that performs a check to see if the
    website on the other server is ONLINE. If not then display a message
    along the lines of SORRY PLEASE TRY LATER.

    I have done some searching and it seems that I might be able to use the
    onerror part within javascript.

    Any advice on this one please
     
    andysideas, Feb 7, 2006
    #1
    1. Advertisements

  2. andysideas

    VK Guest

    To get "error" event from say page body you still need to get the page
    first :)

    <http://www.ajaxtoolbox.com/request/examples.php>
    "Error Handling" example shows that you need.

    Read it, try it, then go to
    <http://www.ajaxtoolbox.com/request/source.php>
     
    VK, Feb 7, 2006
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.