Quick Tip: Learning about HTML5 Local Storage

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Don't understand why I did not know aboout this until today.
That opens completely new horizons.
Thanks for this wonderful and yet important TUT, man!

sdhpCH
Автор

Didn't know about Local Storage.Thanks NetTuts.

VoDInnes
Автор

Local Storage is just a convenient method for a developer to store some data with less effort. From a user point of view it doesn't make sense how the data which she has entered gets saved.

Also notice that this saved data lives locally which means if you go to another computer you will not find it.

Aleksey
Автор

Use caution. This storage option should never be used to store user-specific information (i.e. a shared computer/account would share data across sessions) That means multiple users logging into the same computer/account would have the same todo list. :)

booskie
Автор

Good video to make the basics clear! Thanks for that. I do not understand, however, why you are using plain JS mingled with jQuery. It is so easy to select an element with jQuery (e.g. $("#edit")), yet you are still using getElementById. Any particular reason for that?

BramVanroy
Автор

@stupidclese look at the URL. It's jsbin dot com, that site helps you with the preview stuff. And yes, he could have skipped jquery at all and just use normal javascript.

rickg
Автор

It is an HTML5 Functionality and uses javascript. So you don't need JQuery for it.

Muzimate
Автор

Wow, very cool.

Is this essentially the same as setting cookies? How/where is the local data stored, and which browsers currently support this?

billaddison
Автор

@billaddison82 Well, it`s no really the same as cookies since a lot more can be stored. The data is stored in files into the browsers folders, and the browsers that support it are Opera, Safari, Chrome or Chromium, FireFox and...well that`s it(IE does not support it I think).

GiovaniCeotto
Автор

very usefull tutorial.
One thing i noticed is that firefox only keeps the data when you first switch between tabs : /

altiske
Автор

mucha gracias, very easy to follow. where is localStorage?

ForgottenLegendsOfTomorrow
Автор

COOL i never knew about contenteditable

mrmc
Автор

Is this the same dude that does a lot of stuff on laracasts?

cleanboyk
Автор

can the data inputed by let's say some user be saved? like I have this note widget that my users can write notes, and I want to use this feature. can it remember what the user typed?? and also where are these data saved? just curious!

AlfaDev
Автор

is there a way to use this method to take input values on one page and call/remember them on another page?

Seandd
Автор

By any chance it doesn't work anymore? I'm using chrome and went to your JSBin and it won't even save there..

marciplan
Автор

i'd like read maybe 17000 items from a db, is this possible with html 5?

server
Автор

Will it still work if you restart the browser?

ChristFan
Автор

That is not an editor, it is a website

Go to jsbin. com and try for yourself

PetorialC
Автор

jquery....he is using jquery.js library....as src

surajmotee
join shbcf.ru