[Javascript] Trapping "File not Found"

Peter Brunone peter at brunone.com
Tue Jul 23 22:29:57 CDT 2002


Matthew,

    If you're running this locally from Internet Explorer, you can access
the FileSystemObject from a client-side script.  Then it's just a matter of
going down the available drives and finding the file you need; you don't
have to mess with HTTP error handling at all (which is good, since it's
well-nigh impossible to do in client scripting).

Cheers,

Peter

  -----Original Message-----
  From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Stern,Matthew


  Hello,

  I'm using JavaScript to create an HTML page that is the startup screen for
installation. The challenge is that the programs that can be launched from
this screen might be on two CDs. I'd like to find a way to trap the "File
not Found" error and show an alert that instructs the user to insert the
correct CD. (If there is a better way to do this, please let me know.) Note
that I'm not expecting the CD to be a specific drive letter. It could even
be a path on a network. Thanks in advance for your help.

  Matthew Stern
  Principal Technical Writer
  Best Software
  matthew.stern at bestsoftware.com
  http://www.matthewarnoldstern.com

  The opinions expressed here are solely my own.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20020723/acfc30ff/attachment.htm>


More information about the Javascript mailing list