Using Jquery to check if a URL is valid

Posted by user102533 on Stack Overflow See other posts from Stack Overflow or by user102533
Published on 2010-05-07T02:58:20Z Indexed on 2010/05/07 3:08 UTC
Read the original article Hit count: 191

Filed under:
|
|

A long running background process creates a text file to indicate the completion of the process. From the frontend, I'd need to check every few seconds if the text file has been created or not.

I am doing this check from However the file is created in http://DomainB.com/Mytext.txt

Can someone help me write a jquery script that checks for a file across domain?

PS: Currently, I am doing a ajax postback that executes a WebMethod in ASP.NET that creates HttpWebRequest. This works functionally, but I have major performance problems. So, I need a light weight way of finding if a URL is valid or not.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET