Saving variables to a text/html file in JavaScript serverside -


i'm making form on javascript , want save of users entered variables either .txt file or new webpage variables pre entered in inputs. understand javascript cant manipulate users machine can manipulate servers files(create new files) if can how 1 save variables onto new file in way imported website? input appreciated :) aaron~

javascript running in browser can make http requests server (generally using xmlhttprequest object).

it can't write arbitrary files (if could, client could, , deface website)

you need form of server side process running on server can interpret http request meaning "write file" (although, in cases, write database , generate file on request data there).

you write server side process in javascript if have suitable server side environment (such node.js).


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -