[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/prog/ - Programming

Programming board

Catalog

The next generation of Infinity is here (discussion) (contribute)
A message from @CodeMonkeyZ, 2ch lead developer: "How Hiroyuki Nishimura will sell 4chan data"
Advertise on this site
Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 1 per post.


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

79f46d No.3347

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.

2bf65a No.3348

>>3347

short answer: no

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


0b9b35 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


c5dd0e No.3350

Use localstorage or Node.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]