Questions tagged as 'local-storage'

1
answer

How can I know from and to where I'm browsing with ngRoute?

I have a template that is displayed temporarily, the problem with this is that it is displayed only if I click on a predefined link. What I want to do is that the temporary template is displayed when accessing the URL with id (/ news /...
asked by 04.09.2016 / 01:59
1
answer

LocalStorage does not keep the data saved when the browser is closed

I'm trying LocalStorage to store data in the client's memory and I have a problem that I can not solve. I save an object transformed into a chain by means of setItem in LocalStorage and I can access it by refreshing the browser (Chrome 49.0)...
asked by 20.03.2016 / 23:56
0
answers

Create an IndexedDB editor to store values in a NoSQL database in JavaScript [closed]

I have done a BBCode editor in JavaScript but I need that those values entered (in principle only a value that is the name of a fruit) are stored in a NoSQL database with using IndexedDB and LocalStorage, the problem is that I am quite lost in t...
asked by 15.03.2017 / 20:57
1
answer

Save a browser cached image

I have several% tag img in my html, and the src is an external route to my server, every time I reload the page I must wait for the images to load, I know that the LocalStorage exists but I do not know how to save the image as such...
asked by 12.09.2018 / 03:41
2
answers

Using localStorage to hide a div

Basically the problem I have is that I do not know how to hide the input and the button with localstorage , so when I refresh the page I do not show the input or the button, just the name. HTML <span id="label-user"&g...
asked by 29.03.2017 / 11:52
1
answer

localStorage utility

I wanted to save a series of user data, but not use a database. I have seen the existence of localstorage but I do not finish understanding it. If the user writes something and I store it with localstorage . If tomorrow opens the...
asked by 03.01.2018 / 14:24
1
answer

how can I restrict offensive words in javascript

I have a question: I want to restrict offensive words captured by localStorage in javascript, how can I do it? Currently my code is as follows: /*Funcion de Capturar, Almacenar datos y Limpiar campos*/ $(document).ready(function(){...
asked by 25.09.2018 / 19:26
2
answers

localStorage on iPad is reset from time to time

I have a game that I have made that I save some data in "localstorage", but apparently the iOS operating system does a cleaning from time to time and you never know when this cleaning will be. This is a serious problem for my game because it...
asked by 11.05.2016 / 11:48
1
answer

Delete a card from the DOM and at the same time delete from the localStorage the data contained in this

Recently I started my first project with JavaScript (my first language). It is a note application, where when creating a new one an element is created that is added to the DOM and at the same time to the localStorage and the opposite...
asked by 23.12.2018 / 07:26
1
answer

persistence in LocalStorage (fixes)

I have the following code, what I want is to save an array in my localStorage, which will be saved 1 by one as I add them, so far this is what I have, if you save the first item in the room, but already from the second, it begins to over write i...
asked by 26.12.2018 / 23:59