Open a file on the server in BINARY??? Help!
I am trying to build a simple javascript based webpage editor. So I am trying to find some Javascript scripts that will:
(A) List the files at a particular location on the web server (with filtering by extension). For example: I want to display a list of ASP, HTM, HTML, files only, as a list of links.
then
(B) When the user clicks the link for a specific file, I want to be able to load the webpage source code and dump it into a text box for editing.
then
(c) be able to let the user save the modified source back to the file.
Remember, these are files on the webserver, NOT files belonging to the user. Any ideas Javascript experts? Don't post comments please, just ideas or sample scripts. Thanks!
Paris Hilton
Re: Open a file on the server in BINARY??? Help!
As for listing the contents of the directory on the server and saving the on the server, Javascript cannot do this, it is strictly client side. You need a CGI program or server side script - I suggest PHP (Linux) or ASP.NET (Windows).