![]() ![]() You can access this from your web browser, if your server runs on the same machine, in your web-browser's address bar type: and hit enter/return however, please see the proper NodeJS documentation for serving the necessary client-side HTML & JavaScript as mentioned. Var resp = makePath(_dirname, vars.path, vars.data) Path = ((path = '/') ? path.substr(1, path.length) : path) Let makePath = function(root, path, data) Server-side: NodeJS let http = require('http') The example below is not tested, feel free to test & fix as necessary.įor the client-side code interacting with the "server-side" example below, create an HTML form that uses: method="PUT" and the fields as required by the vars -OR- use an AJAX method to accomplish the same. Method 3: Create a new folder from the ribbon menu Another simple way to create a new folder is to use the New folder button. This assumes you are running NodeJs on Linux and that the file/folder (path) is not recursive. Right-click on a blank space on the Desktop, then go to New > Folder. The following describes a JavaScript solution with code for server-side that you can just copy & paste and modify to your needs. If you work with another language on the server, like PHP, you can find more info about it here: You can find extensive documentation on either of these "JavaScript" solutions however, there are other "JavaScript" solutions available, NodeJS is very popular. server side only requires "Node.js" available here:.client side requires a package called: "NWJS" available here:.For a JavaScript solution for either client-side or server-side, you can use Node.js however, ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |