Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [local-storage]

LocalStorage is a way to store persistent data using JavaScript (see also: SessionStorage).

local-storage
0 votes
0 answers
28 views

I'm writing code in react, and trying to display a pdf file inside a web page. but instead of the expected file, I see the same web page in that place

I'm writing code in react, and trying to display a pdf file inside a web page. but instead of the expected file, I see the same web page in that place. It means that there is a place destinated to ...
Delakour's user avatar
0 votes
0 answers
19 views

Handling large amounts of data efficiently in a MEAN stack application while ensuring data consistency can be challenging

I am facing technical issues with handling a large amount of data in my MEAN stack application. To avoid repeatedly calling the API, I have implemented local storage to cache the data. If the same ...
ihtizaz ahmad's user avatar
-3 votes
0 answers
63 views

Why is my website not allowing me to store in local storage? [closed]

I have a div that I want to display (then will collapse after a timeout) when one first visits my site, but after that I want that div to remain collapsed. I found this jsfiddle that seems perfect for ...
Darren's user avatar
  • 5
0 votes
0 answers
26 views

How to get access token from local Storage when using python and selenium webdriver

I using Python and Selenium to implement automation test for case refresh token with access token store in localStorage. I can log in successfully and when try to print out value from localStorage it ...
Cường Trần Văn's user avatar
0 votes
0 answers
17 views

window.localStorage don't work on angular Project

i get this error when i run my code on Webstorm 2020, i have angular 16: the error said: Error: src/app/services/storage/user-storage.service.ts:69:12 - error TS2339: Property 'localStorage' does not ...
Mounir bkr's user avatar
  • 1,317
1 vote
2 answers
50 views

localStorage Value is Stored and Loaded Correctly but Not Applied to Checkbox Input

I am trying to use localStorage to store and load the checked state of a checkbox. The values are being correctly stored and retrieved from localStorage, but the checkbox is not reflecting these ...
Muhammad Aleem's user avatar
1 vote
0 answers
34 views

Local Storage Form Array Overwritten After Refresh

I'm working to store input data from a Squarespace form to local storage. The objective is to persist all form fields locally, until the form is submitted. This way, users don't lose any data if they ...
Andy Quella's user avatar
-1 votes
1 answer
24 views

I've can't be able to make that the new task stand in task-box as a button after close and open the browser using localStorage

I want to be able to scale a class-project using localStorage, saving the text into a button and when I refresh the browser that keep and, delete it when I want, since said button already is ...
Piero Bustamante's user avatar
0 votes
1 answer
69 views

Blazor NET8 localStorage getItem gives IJSRuntime error or disconnects from server

I am updating a Blazor hosted web app from net6 to a Blazor Web App in net8, and have been unable to retrieve an item from local storage. I can successfully SET the item in localStorage, and after I ...
user13814551's user avatar
-1 votes
0 answers
21 views

PWA on iOS Not Retaining Cookies and LocalStorage After App Restart

What happened I encountered an issue with my Progressive Web App (PWA) on iOS where user login states were not maintained upon closing and restarting the application. Here are the details of my ...
Derek Bredensteiner's user avatar
0 votes
2 answers
89 views

TypeError: type 'String' is not a subtype of type 'Map<String, dynamic>'

I am trying to get data from local storage and display it on the screen using flutter_bloc, but I am getting the error "type 'String' is not a subtype of type 'Map<String, dynamic>'". ...
Meet Bhanderi's user avatar
1 vote
1 answer
22 views

Having difficulty is using the wait time in the selenium + Jmeter where am trying to extract the userid from the local storage of the application

Can any one show how to extract the local storage value in the jmeter. var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui); var jmeterVariables = org.apache.jmeter.threads....
ayesha hyder's user avatar
0 votes
1 answer
40 views

localStorage in javascript Does not update score if placed outside of function

I have this code when when you click a button, it randomly generates a win or lose count; I want to save the score of the win/lose counts so even when the page is refreshed I can still continue. My ...
Rahand hemin's user avatar
-1 votes
0 answers
37 views

Angular local storage issues with Https in linux server

I have a Linux server where I host a Laravel API and an Angular front-end application. This server has a virtual host for the Laravel API and also hosts the Angular front-end application. The Angular ...
HiroMB's user avatar
  • 1
0 votes
0 answers
51 views

Nothing is being saved at local storage

I started writing JS code 3 weeks ago and currently I am trying to build a game-however for the past couple of days ran into a problem concerning the way I use local storage- basically the data is ...
CFHVDOPFBD's user avatar

15 30 50 per page
1
2 3 4 5
702