Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37920
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2019-12-05 01:18 -0800 |
| References | <6e6dcd6b-ae45-484a-9144-7c26dcb78a63@googlegroups.com> <66aa7c3b-7896-4986-bec5-ecf784fb0dc8@googlegroups.com> |
| Message-ID | <abb5f20d-9da6-4a48-957d-bd87bf0e87ed@googlegroups.com> (permalink) |
| Subject | Re: Could i store settings in a cookie file? |
| From | Julio Di Egidio <julio@diegidio.name> |
On Thursday, 5 December 2019 10:02:30 UTC+1, Jonas Thörnvall wrote: > Den torsdag 5 december 2019 kl. 00:29:08 UTC+1 skrev Jonas Thörnvall: > > I have a client side script, are cookies dynamic?, can they be read and written by a client side script? If so could they be used to store settings for the script? > > > > "I know absolutely nothing about cookies". > > Thanks for the links and answers, i was thinking that within my clientisde the cookie could store things like > > Default BPM, FPS, recording range, edit range, midi port configuratio, midi channel setting, sound patch setting, drum patch setting, andn that will save and load automatically with the script. Maybe even let the user create a cookie with name and push save settings to create it? > > And then dynamically read in and list the cookie names in a selection list, that could be pressed to load the setting file/cookie. > > Well maybe that is alot of programming, but i was thinking just listing them and read into array. Where each slot/element hold a certain parameter that will be read into variable. So maybe it is not that hard afterall. Yes, that's fine and dandy, just two cautions I would mention: - (To be safe) assume a limit of 1K on the amount of data you can store in a cookie. (If it is more data than that, sure you can then start using multiple cookies, but it eventually gets cumbersome: for more data or for more complex scenarios, you better go with "local storage". Anyway, most probably not your case here.) - I would suggest you keep this functionality at the bottom of the TODO list: first get a working product, the core functionality, then do as much (more!) clean-up and rationalisation as you can (being careful not to get into unneeded generalisation and/or optimisation), finally implement any "accessories"... HTH, Julio
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Could i store settings in a cookie file? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-12-04 15:28 -0800
Re: Could i store settings in a cookie file? "R.Wieser" <address@not.available> - 2019-12-05 09:15 +0100
Re: Could i store settings in a cookie file? Julio Di Egidio <julio@diegidio.name> - 2019-12-05 00:26 -0800
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-06 08:26 +0100
Re: Could i store settings in a cookie file? Julio Di Egidio <julio@diegidio.name> - 2019-12-06 00:15 -0800
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-06 14:59 +0100
Re: Could i store settings in a cookie file? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-12-05 01:02 -0800
Re: Could i store settings in a cookie file? Julio Di Egidio <julio@diegidio.name> - 2019-12-05 01:18 -0800
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-05 15:32 +0100
Re: Could i store settings in a cookie file? Julio Di Egidio <julio@diegidio.name> - 2019-12-05 10:00 -0800
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-06 08:25 +0100
Re: Could i store settings in a cookie file? Daniele <webmaster@appliserver.com> - 2019-12-06 09:53 +0100
Re: Could i store settings in a cookie file? Julio Di Egidio <julio@diegidio.name> - 2019-12-06 01:07 -0800
Re: Could i store settings in a cookie file? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-12-06 10:45 +0100
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-06 15:07 +0100
Re: Could i store settings in a cookie file? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-12-06 17:05 +0100
[OT] Meaning of "plonk" (was: Re: Could i store settings in a cookie file?) Arno Welzel <usenet@arnowelzel.de> - 2019-12-06 15:04 +0100
Re: Could i store settings in a cookie file? Arno Welzel <usenet@arnowelzel.de> - 2019-12-05 15:35 +0100
csiph-web