I am trying to find out whether or not a file exists, before trying to download it. The file is a ClickOnce application.
I have already tried the following code, but this does not work (maybe because the URL is on a different server and domain?);
//File does not exist
// File exists
Yes, this should not work if the URL is on a different server. If you want to make this work, you will need control over the server where the URL is downloaded from. If so, you should set
See Stack Overflow question jQuery AJAX cross domain for more details.