• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Javascript FileExists()? I wish...

xirtam

Diamond Member
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 don't believe it can be done with javascript.

Something about not being able to access the local filesystem due to security.
 
Back
Top