Using Jquery to check if a URL is valid
<p>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.</p>

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

<p>Can someone help me write a jquery script that checks for a file across domain? </p>

<p>PS: Currently, I am doing a ajax postback that executes a <code>WebMethod</code> in ASP.NET that creates <code>HttpWebRequest</code>. 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.</p>

<p>Thanks</p>
