I'm looking for some kind of Javascript equivalent of the ASP FileExists function. I need to check to see if a file exists on the local machine.
I cannot use error handling (i.e., to attempt to open the file, if successful, file exists, if not successful, file does not exist.)
I also cannot use VBScripting or ActiveX controls.
If the only solution is through the error handling procedure above, I need the javascript to be smart enough not to trigger on the wrong event. For example, I don't want my code to trigger due to some other error in script.
Any help?
I cannot use error handling (i.e., to attempt to open the file, if successful, file exists, if not successful, file does not exist.)
I also cannot use VBScripting or ActiveX controls.
If the only solution is through the error handling procedure above, I need the javascript to be smart enough not to trigger on the wrong event. For example, I don't want my code to trigger due to some other error in script.
Any help?