Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Verifying links with JavaScript?
Old 05-26-2005, 10:25 PM Verifying links with JavaScript?
Junior Talker

Posts: 1
Trades: 0
Is there a way to verify if a page exists in Javascript so that you can load another document if the page is not available?
Githlar is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-28-2005, 03:15 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
If the page is on the same domain as the script you want to test with, then you can use the XMLHTTP object (the object used in the 'AJAX' features) to check the response code.

If it is not on the same server, you'll run into problems with browser security levels so it's not worth the hassle.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Verifying links with JavaScript?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33627 seconds with 12 queries