Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
26 views

using built-in local storage object:not getting null in the output when using remove

I wrote a program for rock, paper, scissors with 4 buttons one extra for resetting. I wrote two functions one for computer move and one for player move. Along with that, it updates the wins, losses, ...
Manasa's user avatar
  • 11
0 votes
0 answers
92 views

In React Native, why does this not work? I just want to save and use these two valuse in a local storage, but one works, but the other doesn't work

Just like the title says, I want to save two values into a local storage with AsyncStorage. My app is quite simple. There are two buttons that increment each of the numbers by pressing them. They're ...
sahasrabhuja neuron's user avatar
0 votes
0 answers
44 views

local storage loses property when submit a form

I'm working on a toDo project with local storage. When i try do update the local storage it works perfectly. But after pressing the submit button and the page is reloading the data gets lost. I'm ...
Sandy's user avatar
  • 7
0 votes
0 answers
601 views

Local storage to mongodb

I hope someone will help me. I was using local storage as my database in my system and wants to change it into mongodb. The thing is, I am defining ng local storage in javascript, and wanted to change ...
nodesNodes's user avatar
2 votes
2 answers
2k views

React update localstorage data

I'm trying to update data from the local host. I have 2 interfaces "loggedInUsers" and "user", one with a default value and the other with an individual value. In this case it is ...
triple-D's user avatar
-2 votes
1 answer
353 views

Storing 2 different arrays in local Storage js [duplicate]

For example, I have 2 arrays. One is myFavCars and one is myDislikedCars. How can I store them in local storage something like: localStorage.setItem('myPreferences', { myFavCars: [], myDislikedCars: []...
andreiw's user avatar
  • 11
1 vote
0 answers
256 views

JS deleting item in Todolist with localstorage. It deletes the index in order (0, 1, 2, 3, 4) How to specify my delete item when I click it?

Newbie here... When using my deleteItem function in javascript Lets say I added a list items 1, 2, 3, 4 and in my localStorage it will equal as an array of [1, 2, 3, 4] so when I click the delete ...
Ohwell's user avatar
  • 53
0 votes
2 answers
295 views

I can store in LOCAL STORAGE but the lists are still gone after refreshing the page? basic Todo list app with Javascript

I have a JavaScript todo list practice app from scratch and spent hours on how to store it in local storage and it works. But it does not appear in actual HTML page of todo list? I've seen some ...
Ohwell's user avatar
  • 53
1 vote
1 answer
550 views

Is localstorage data encryption necessary?

I am making an add to cart system first time and instead of using php , I am using javascript i.e in client side. will it be safe ?? or if it is not, then what should I do to secure the data in ...
Eeshaan Gupta's user avatar
-1 votes
2 answers
57 views

local storage not defined why?

why when I try to submit the form is it saying local storage not defined. let info = []; const addInfo = (ev) => { ev.preventDefault(); let formInfo = { cardNumber: document....
Remy Kasady's user avatar
0 votes
2 answers
733 views

How to set an item limit on localstorage items Javascript HTML5

I am trying to set a limit of 6 items to localstorage and also retrieve the items back. So for example if a user types in data into an input box with id #gsc-i-id2 and clicks the .gsc-search-button-v2,...
bennyc's user avatar
  • 23
1 vote
1 answer
769 views

Local storage in JS not loading items problem

I have a problem with the local storage it seems the items are getting saved to local storage but I cannot make it work to load at start. Any tips and advice much appreciated. I am posting the code ...
Marcin Zygan's user avatar
0 votes
2 answers
519 views

Local Storage only stores one value/key. How can I store numerous?

Here is all my code from HTML, including my Local Storage. I have tried putting my javascipt into a external JS file, and refer to it in my HTML but it didn't help at all. So I think the mistake is in ...
Emilia Malmberg's user avatar
0 votes
0 answers
173 views

set object's value in local storage

Need to add Objects in local storage and also use them same time. But code showing "noteObj.push is not a function" // add a Event Listener in #add-btn and gat 2 input textlet addBtn = ...
Shourov Ys's user avatar
0 votes
0 answers
29 views

Local Storage not saving any of my form inputs

enter image description here SO I have a form that when submits it goes to another html page. Im trying to get the variables saved so i can then use them on the other webpage, however nothing saves ...
PocketTrigger's user avatar

15 30 50 per page