Most voted "localstorage" questions
The Localstorage object stores data locally and makes it available to any window/tab. Data in Localstorage is maintained even if the browser is closed, which is removed only by the application that defined it, or manually by the user.
Learn more…122 questions
Sort by count of
-
0
votes1
answer16
viewsLocalstorage, jquery and CSS
I’m saving the font size on localStorage and recovering to set after the page is ready, I am not able to set using the value recovered in localstorage, to set the source I am using jquery, follow…
-
0
votes1
answer227
viewslocalstorage with React Redux
Good morning, I’m doing a test with React-Redux and localstorage .. it works normal however if I give F5 on the page it does not recover the data that was being saved in localstorage.. someone knows…
-
0
votes0
answers20
viewsEfficient way to save a File object locally for later use
Hello! I am developing a web app, and in it uploading files are done. When the user is offline (it’s a PWA) I need to save these files locally to upload later. I cannot save a File object directly…
-
0
votes1
answer27
viewsI can’t redirect the page after logging in!
I can’t redirect my page after entering login data windows.location.href command seems not to work!!! $(document).ready(function () { $("#signup-form").submit(function () { var nm1 =…
-
0
votes1
answer35
viewsStoring an input field value in a localStorage
I’m trying to get the content of an input field in html: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible"…
-
0
votes0
answers30
viewsLocalstorage, Vuejs. How to recover and add up the value of a Jason/localstorage column
I want to locally persist all sums(val*times) and sum all "sum" results using vuejs. Data to be persisted: data: { nameApp: 'App', somaValor: { id: '', val: '', vezes: '', soma: '' }, }, Data from…
-
0
votes1
answer19
viewshow to use the array.find method to find an attribute of an array that is formed by the contents of the localStorage?
I have an empty array that receives via push the content of the localstorage (which is also an array), however, when I give a.find vector to find the value of an attribute, such as _name, it does…
-
-1
votes1
answer409
viewsIf Else if in Javascript
I’m developing an application using phonegap/Cordova that stores data using localStorage and I’m having a problem with javascript... I’m calling a function to save() my data, a function to load()…
-
-1
votes1
answer46
viewsMandatory fields in Storage session
I developed a form with localstorage on this site here however inside it has two inputs one for name and the other for salary however needed that these fields were mandatory because when they are…
-
-1
votes1
answer42
viewsPrint JSON.Parse
Good morning, I have a variable that stores data from a localStorage, which in turn contains the data below: Array[3] 0:"{"Token":-6742.075757575755,"Solicitacao":"3359659","Justificativa":"jjjj"}"…
-
-1
votes1
answer209
viewsShare Localstorage with browsers
Is there a way to share localstorage with multiple browsers? For example, I define localStorage.setItem("lang", "pt"); in Chrome, however, I would like this value to be available in Firefox and…
-
-1
votes1
answer566
viewsHow to save elements in localStorage and send to another page?
I would like to save some fields from my main page and send to my "cart" page. Ex: I would like to save the title of a product to display on another page without using a database. What I have so…
localstorageasked 5 years, 4 months ago Weslley Fillipe 161 -
-1
votes1
answer49
viewsWhy aren’t you showing the saved login in Localstorage?
I am creating a hybrid app with Cordova, and I want the user to log in first, it stays logged in direct. If it leaves the app for example, and logs in again, it doesn’t need to log in. I am using…
-
-1
votes1
answer78
viewsAdd javascript countdown to localstorage
I made a countdown using javascript, which is working fine. However, when adding the event, he wanted to record it in localstorage and allow it to be done more than once, adding several events and…
-
-2
votes1
answer33
viewsPopup opening on every page after Load is finished, even after it is closed
I have a following situation: A Popup appears every time you finish a load on the page, the user can click X (close). But every time he enters another page the Popup goes up again and so it is…
-
-2
votes1
answer54
viewsDuvida Javascript
The structure below is a guide to how the information is arranged. Implement the function in javascript listAllDoctors() which is responsible for storing the structure below containing the…
-
-2
votes1
answer54
viewsPeople who can help me, I’m a beginner in javascript,
I wanted to have the amount of clicks stored in the Torage locale, and when I returned the number of clicks continued where it left off. I tried to do so, but no alert only shows NaN: <!DOCTYPE…
-
-2
votes1
answer250
viewslocalStorage.getItem does not work
Good evening, could you help me? I’m trying to pass the data from one page to another but the field is empty. page 1: where I take the data. page 2: where I want to insert that data. PAGE 1: <h1…
localstorageasked 5 years, 4 months ago Weslley Fillipe 161 -
-2
votes1
answer47
viewshow to save data to localStorage with this agenda
THAT AND THE HTML: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link…
-
-3
votes1
answer153
viewsKeep div hidden after a refresh
Speak, people! Beauty? I’m in need of help :/ I don’t understand anything about JS and I need my div "#custom-social-Proof" to appear only once for the user who enters my site. If he re-load…
-
-3
votes1
answer64
viewsHow to Store Data from this Code?
/It is to take the data that are appearing there example when you click on the button appears the time and amount of clicks I want to take these two information and store anywhere that of to store…
-
-5
votes1
answer60
viewsHow to delete a JSON within an Array in localStorage()
I’m creating an app for annotations and I would like to be able to delete the respective note, when the user clicks, I created this function but it is not returning anything to my localStorage(), I…