bjf98
11-30-2007, 10:35 PM
Hi guys. I am looking for a javascript that will check to see if a page exists or not. If it does, I would like it to return some text. If not I would like it to return some other text. Is this possible? Any help appreciated!
djr33
11-30-2007, 11:06 PM
You could use Ajax for a local page, though that seems a bit complex. Ajax will also not work for an external page. (Another domain)
You can use PHP, or another server side language, to do this. You could also then use Ajax to check the response of a PHP script, meaning you could have it output "works" or "fails", then the JS could react.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.