EasyManua.ls Logo

ControlByWeb X-600M - Page 150

ControlByWeb X-600M
158 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix H: Custom Web Pages X-600M Users Manual
Otherwise, valid paths are “/usb/” and “/ram/”,
which will search for the file on the external usb
drive, and the internal ram drive respectively.
There are a couple of things that cannot be accomplished using the templating engine or the X-600M javascript
helper library. These are deleting custom files and downloading custom files. To achieve this functionality, there
are two special files that can be requested along with the name of the file to delete or download. These files will
only allow custom files found in the internal flash, external usb drive, or internal ram drive to be deleted or
downloaded.
To delete a custom file request the following either from a javascript function or the browser's address bar
directly:
deleteFile.php?filename=fileToDelete.ext
To download a custom file request the following either from a javascript function or the browser's address bar
directly:
downloadFile.php?filename=fileToDownload.ext
The filename can contain the path to the file, which indicates where the file is located:
downloadFile.php?filename=/usb/fileToDownload.ext
downloadFile.php?filename=/ram/fileToDownload.ext
downloadFile.php?filename=fileToDownload.ext
Page 148 Xytronix Research & Design, Inc.

Table of Contents