Jimbo2150
05-23-2003, 01:50 PM
Is ther a way to use JavaScript to verify a connection (check to see if a server is up or down)?
Here is my situation:
I have a website hosted on a server that doesnt support PHP (other servers cost too much at the moment).
I have my own server with PHP and MySQL servers, but only want to use it for a small portion of my site.
I have an IFRAME linking to my server on the website.
I would like to (if possible) verify that my server is up before linking the IFRAME to it.
RUNDOWN:
WEBSITE SERVER(NO PHP) -> IFRAME in SITE -> Verify connection to my server (Is it up or not?) -> IF SERVER IS UP display page in IFRAME -> IF NOT, display a message 'SERVER IS NOT UP'
I was hoping to link the IFRAME if the server is up, and if not display a message in the IFRAME stating that the server is not running.
Is it possible with JavaScript? VBScript?
I would use PHP but as I said the server it is running from doesnt support it. Only my server does.
Here is my situation:
I have a website hosted on a server that doesnt support PHP (other servers cost too much at the moment).
I have my own server with PHP and MySQL servers, but only want to use it for a small portion of my site.
I have an IFRAME linking to my server on the website.
I would like to (if possible) verify that my server is up before linking the IFRAME to it.
RUNDOWN:
WEBSITE SERVER(NO PHP) -> IFRAME in SITE -> Verify connection to my server (Is it up or not?) -> IF SERVER IS UP display page in IFRAME -> IF NOT, display a message 'SERVER IS NOT UP'
I was hoping to link the IFRAME if the server is up, and if not display a message in the IFRAME stating that the server is not running.
Is it possible with JavaScript? VBScript?
I would use PHP but as I said the server it is running from doesnt support it. Only my server does.