Excelente, thank you so much. This video should be one of the firsts to pop up when we search for Local Storage, but its not. Took me a while to find a useful video, but i'm glad i find yours. Great job, thank you again.
this is probably a long shot, but my local storage works fine, it saves, but my chrome doesnt show it. it appears when i use my laptop or another device, but on my desktop chrome browser when i check the local storage it doesnt appear, i cleared cache and hard refreshed chrome but not worked, any ideas? thanks!
This overwrites the local Storage when you use it again. It doesn't add. Is it supposed to overwrite the local storage? How do you use the form to add multiple objects to local Storage?
You would want to store an array. Remember, local storage doesn't actually store objects. In order to store arrays or objects, the data must first be serialized as a JSON string, and that is what gets persisted in localstorage. Steps to add objects to an array in local storage: 1) Read data from local storage. 2) If data exists, parse the json to an array. 3) Push the new object containing form data to the array. 3) Serialize the array as JSON using JSON.stringify. 4) Persist the serialized data in localstorage.
I did everything step by step. All the console.log() test were ok. Until creating carInfo object (11:54) . It just stopped working all together. It doesn't hit localStorage and gives no errors either.
Excelente, thank you so much. This video should be one of the firsts to pop up when we search for Local Storage, but its not. Took me a while to find a useful video, but i'm glad i find yours. Great job, thank you again.
The best to date!!- practical using J.stringing J. Parse.
AI loves this tuff!! For API imput( 200)!!
Excellent video!! Very practical and concise!
nice video, thank you
Thank you very much for the very good explanation
You are welcome!
Thanks a lot, this was really useful for me
Glad it was helpful!
this is probably a long shot, but my local storage works fine, it saves, but my chrome doesnt show it. it appears when i use my laptop or another device, but on my desktop chrome browser when i check the local storage it doesnt appear, i cleared cache and hard refreshed chrome but not worked, any ideas? thanks!
Why this video is not on top search?? Thank you soo much buddy
Glad you found it helpful.
thank you sir , that's was very helpful
This overwrites the local Storage when you use it again. It doesn't add. Is it supposed to overwrite the local storage? How do you use the form to add multiple objects to local Storage?
You would want to store an array. Remember, local storage doesn't actually store objects. In order to store arrays or objects, the data must first be serialized as a JSON string, and that is what gets persisted in localstorage. Steps to add objects to an array in local storage: 1) Read data from local storage. 2) If data exists, parse the json to an array. 3) Push the new object containing form data to the array. 3) Serialize the array as JSON using JSON.stringify. 4) Persist the serialized data in localstorage.
Respect!
Very helpful!
Does it create a new array everytime the user inputs and clicks submit button?
Can you reference a time stamp so I can be sure I understand which part you are asking about?
Thank you
You're welcome
sir, can you pls tell how do i get unique id in localstorage?
Check Google on local storage !!- they don’t like local thru their Jquery.
SessionStorage is less intrusive for them.
Very Good
Legend
This channel has lots of good information but just 38 subscribers. We can help push this channel forward and help thus channel gain more visibility.
ty man
I did everything step by step. All the console.log() test were ok. Until creating carInfo object (11:54) . It just stopped working all together. It doesn't hit localStorage and gives no errors either.
Try making a codepen with your code and share it here. Maybe someone can help spot an issue. You could also try posting to stack overflow for help.
You should at give atleast source code in description