Your SlideShare is downloading. ×
Almacenamiento en HTML5
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Almacenamiento en HTML5

557
views

Published on

Presentación preparada por Adrián Catalán (@ykro) …

Presentación preparada por Adrián Catalán (@ykro)

Video disponible en http://youtu.be/q54VR-bcCzo
Demos en http://dl.dropbox.com/u/8418860/HTML5WebStorageDemos.zip

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
557
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. HTML5:Almacenamiento Adrián Catalánadriancatalan@elementalgeeks.com @ykro
  • 2. Webstorage• Almacenamiento simple con la forma de un diccionario• No es SQL (otro spec http://www.w3.org/TR/webdatabase/)• Reemplazo para cookies• Almacenamiento hasta 5MB
  • 3. LocalStorage vsSessionStorage
  • 4. La especificación completadel API se encuentra enhttp://www.w3.org/TR/webstorage/
  • 5. void setItem(DOMString key,DOMString value);
  • 6. sessionStorage.setItem( "nombre", "Adrian");localStorage.setItem( "nombre", "Adrian");
  • 7. DOMStringgetItem(DOMStringkey);
  • 8. nombre =sessionStorage.getItem("nombre");nombre =localStorage.getItem("nombre");
  • 9. voidremoveItem(DOMString key);
  • 10. sessionStorage.removeItem("nombre");localStorage.removeItem("nombre");
  • 11. void clear();
  • 12. sessionStorage.clear();localStorage.clear();
  • 13. DOMString? key(long index);
  • 14. var key =sessionStorage.key(i);
  • 15. Si quiero almacenar objetosen vez de strings utilizo JSON(método stringify) al guardary parse() al obtener loguardado
  • 16. HTML5:Almacenamiento Adrián Catalánadriancatalan@elementalgeeks.com @ykro