Check if File Exists on different Server
<p>I need to see if a file exist on another server. So if I called <a href="http://www.someotherserver.com/index.html" rel="nofollow">http://www.someotherserver.com/index.html</a> if the page is there it returns true and if not it returns false. I gave this a try: </p>

<pre><code>    $.ajax({
        type: 'HEAD',
        url: 'http://localhost/HTMLPage1.htm',
        success: function () {
        },
        error: function () {
            alert("Unable to connect to secure checkout.");
            return false;
        }
    });
</code></pre>

<p>But it returns an error every time. I was thinking maybe because of cross-domain scripting.  Does anyone know how to make this work or have a method that does work?</p>

<p>Thanks!</p>
