[ / / / / / / / / / ] [ dir / ask / dcaco / fur / hypno / o / sl / ttgg / u ][Options][ watchlist ]

/prog/ - Programming

Programming board

Catalog

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): 1444177895970.jpg (104.56 KB, 640x480, 4:3, advanced.jpg) (h) (u)

[–]

7b5d8e (1) No.3347>>3348 [Watch Thread][Show All Posts]

Hello all, currently I am learning JavaScript, I was wondering if there is a way to save a file to the same directory as the js file that would contain info the the user provided.

The reason I ask this is I'm wondering if I can create a simple game that you can come back to and continue your adventures. I already have every thing else planned out.

969629 (1) No.3348

>>3347 (OP)

short answer: no

long answer: yes but you have to have a functioning backend or use cookies.


e21b01 (1) No.3349

If your JavaScript is running in a browser, you need to use cookies. Any way about doing it that avoids cookies is going to be more work than just using cookies.

http://www.w3schools.com/js/js_cookies.asp


ef8202 (1) No.3350

Use localstorage or Node.




[Return][Go to top][Catalog][Screencap][Update] ( Scroll to new posts) ( Auto) 5
3 replies | 0 images | 4 UIDs | Page ?
[Post a Reply]
[ / / / / / / / / / ] [ dir / ask / dcaco / fur / hypno / o / sl / ttgg / u ][ watchlist ]