Suche senden
Hochladen
Intro to HTML5 Web Storage
•
2 gefällt mir
•
1,022 views
D
dylanks
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 11
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Softshake - Offline applications
Softshake - Offline applications
jeromevdl
2012-08-29 - NoSQL Bootcamp (Redis, RavenDB & MongoDB für .NET Entwickler)
2012-08-29 - NoSQL Bootcamp (Redis, RavenDB & MongoDB für .NET Entwickler)
Johannes Hoppe
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
Amanda Gilmore
Indexed db
Indexed db
Martin Giger
Persistencia de datos con Parse
Persistencia de datos con Parse
Alfonso Alba
Beginning icloud development - Cesare Rocchi - WhyMCA
Beginning icloud development - Cesare Rocchi - WhyMCA
Whymca
Symfony2 from the Trenches
Symfony2 from the Trenches
Jonathan Wage
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
Sheeju Alex
Empfohlen
Softshake - Offline applications
Softshake - Offline applications
jeromevdl
2012-08-29 - NoSQL Bootcamp (Redis, RavenDB & MongoDB für .NET Entwickler)
2012-08-29 - NoSQL Bootcamp (Redis, RavenDB & MongoDB für .NET Entwickler)
Johannes Hoppe
PostgreSQL's Secret NoSQL Superpowers
PostgreSQL's Secret NoSQL Superpowers
Amanda Gilmore
Indexed db
Indexed db
Martin Giger
Persistencia de datos con Parse
Persistencia de datos con Parse
Alfonso Alba
Beginning icloud development - Cesare Rocchi - WhyMCA
Beginning icloud development - Cesare Rocchi - WhyMCA
Whymca
Symfony2 from the Trenches
Symfony2 from the Trenches
Jonathan Wage
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
Sheeju Alex
Doctrine MongoDB Object Document Mapper
Doctrine MongoDB Object Document Mapper
Jonathan Wage
Hidden pearls for High-Performance-Persistence
Hidden pearls for High-Performance-Persistence
Sven Ruppert
2015 02-09 - NoSQL Vorlesung Mosbach
2015 02-09 - NoSQL Vorlesung Mosbach
Johannes Hoppe
Node.js in action
Node.js in action
Simon Su
Couchdb w Ruby'm
Couchdb w Ruby'm
Stanisław Wasiutyński
Symfony Day 2010 Doctrine MongoDB ODM
Symfony Day 2010 Doctrine MongoDB ODM
Jonathan Wage
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Arian Gutierrez
Diving into php
Diving into php
Dan Phiffer
San Francisco Java User Group
San Francisco Java User Group
kchodorow
Nuxeo - OpenSocial
Nuxeo - OpenSocial
Thomas Roger
занятие8
занятие8
Oleg Parinov
Web2py
Web2py
Lucas D
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
MongoDB
Redis the better NoSQL
Redis the better NoSQL
OpenFest team
Drupal Entities - Emerging Patterns of Usage
Drupal Entities - Emerging Patterns of Usage
Ronald Ashri
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
iOS5 NewStuff
iOS5 NewStuff
deenna_vargilz
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
Liwei Chou
SWORD & ResourceSync - Stuart Lewis
SWORD & ResourceSync - Stuart Lewis
Repository Fringe
Windows 8 JavaScript (Wonderland)
Windows 8 JavaScript (Wonderland)
Christopher Bennage
Local Storage
Local Storage
Ivano Malavolta
Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)
Mike West
Weitere ähnliche Inhalte
Was ist angesagt?
Doctrine MongoDB Object Document Mapper
Doctrine MongoDB Object Document Mapper
Jonathan Wage
Hidden pearls for High-Performance-Persistence
Hidden pearls for High-Performance-Persistence
Sven Ruppert
2015 02-09 - NoSQL Vorlesung Mosbach
2015 02-09 - NoSQL Vorlesung Mosbach
Johannes Hoppe
Node.js in action
Node.js in action
Simon Su
Couchdb w Ruby'm
Couchdb w Ruby'm
Stanisław Wasiutyński
Symfony Day 2010 Doctrine MongoDB ODM
Symfony Day 2010 Doctrine MongoDB ODM
Jonathan Wage
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Arian Gutierrez
Diving into php
Diving into php
Dan Phiffer
San Francisco Java User Group
San Francisco Java User Group
kchodorow
Nuxeo - OpenSocial
Nuxeo - OpenSocial
Thomas Roger
занятие8
занятие8
Oleg Parinov
Web2py
Web2py
Lucas D
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
MongoDB
Redis the better NoSQL
Redis the better NoSQL
OpenFest team
Drupal Entities - Emerging Patterns of Usage
Drupal Entities - Emerging Patterns of Usage
Ronald Ashri
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
Johannes Hoppe
iOS5 NewStuff
iOS5 NewStuff
deenna_vargilz
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
Liwei Chou
SWORD & ResourceSync - Stuart Lewis
SWORD & ResourceSync - Stuart Lewis
Repository Fringe
Windows 8 JavaScript (Wonderland)
Windows 8 JavaScript (Wonderland)
Christopher Bennage
Was ist angesagt?
(20)
Doctrine MongoDB Object Document Mapper
Doctrine MongoDB Object Document Mapper
Hidden pearls for High-Performance-Persistence
Hidden pearls for High-Performance-Persistence
2015 02-09 - NoSQL Vorlesung Mosbach
2015 02-09 - NoSQL Vorlesung Mosbach
Node.js in action
Node.js in action
Couchdb w Ruby'm
Couchdb w Ruby'm
Symfony Day 2010 Doctrine MongoDB ODM
Symfony Day 2010 Doctrine MongoDB ODM
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Tipo virus espia con esto aprenderan a espiar a personas etc jeropas de mrd :v
Diving into php
Diving into php
San Francisco Java User Group
San Francisco Java User Group
Nuxeo - OpenSocial
Nuxeo - OpenSocial
занятие8
занятие8
Web2py
Web2py
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
Redis the better NoSQL
Redis the better NoSQL
Drupal Entities - Emerging Patterns of Usage
Drupal Entities - Emerging Patterns of Usage
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
2012-03-20 - Getting started with Node.js and MongoDB on MS Azure
iOS5 NewStuff
iOS5 NewStuff
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
SWORD & ResourceSync - Stuart Lewis
SWORD & ResourceSync - Stuart Lewis
Windows 8 JavaScript (Wonderland)
Windows 8 JavaScript (Wonderland)
Ähnlich wie Intro to HTML5 Web Storage
Local Storage
Local Storage
Ivano Malavolta
Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)
Mike West
Week 4 - jQuery + Ajax
Week 4 - jQuery + Ajax
baygross
Organizing Code with JavascriptMVC
Organizing Code with JavascriptMVC
Thomas Reynolds
Terrastore - A document database for developers
Terrastore - A document database for developers
Sergio Bossa
The Magic Revealed: Four Real-World Examples of Using the Client Object Model...
The Magic Revealed: Four Real-World Examples of Using the Client Object Model...
SPTechCon
Persistent Offline Storage White
Persistent Offline Storage White
Alexei White
Parse London Meetup - Cloud Code Tips & Tricks
Parse London Meetup - Cloud Code Tips & Tricks
Hector Ramos
Building Your First MongoDB App
Building Your First MongoDB App
Henrik Ingo
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
Robert Nyman
NoSQL and JavaScript: a Love Story
NoSQL and JavaScript: a Love Story
Alexandre Morgaut
Hibernate
Hibernate
Sunil OS
OrientDB introduction - NoSQL
OrientDB introduction - NoSQL
Luca Garulli
Local data storage for mobile apps
Local data storage for mobile apps
Ivano Malavolta
Entity Framework Core & Micro-Orms with Asp.Net Core
Entity Framework Core & Micro-Orms with Asp.Net Core
Stephane Belkheraz
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
Dmitry Soshnikov
A Rich Web experience with jQuery, Ajax and .NET
A Rich Web experience with jQuery, Ajax and .NET
James Johnson
Intorduction of Playframework
Intorduction of Playframework
maltiyadav
Taking Web Apps Offline
Taking Web Apps Offline
Pedro Morais
Intoduction on Playframework
Intoduction on Playframework
Knoldus Inc.
Ähnlich wie Intro to HTML5 Web Storage
(20)
Local Storage
Local Storage
Intro to IndexedDB (Beta)
Intro to IndexedDB (Beta)
Week 4 - jQuery + Ajax
Week 4 - jQuery + Ajax
Organizing Code with JavascriptMVC
Organizing Code with JavascriptMVC
Terrastore - A document database for developers
Terrastore - A document database for developers
The Magic Revealed: Four Real-World Examples of Using the Client Object Model...
The Magic Revealed: Four Real-World Examples of Using the Client Object Model...
Persistent Offline Storage White
Persistent Offline Storage White
Parse London Meetup - Cloud Code Tips & Tricks
Parse London Meetup - Cloud Code Tips & Tricks
Building Your First MongoDB App
Building Your First MongoDB App
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
JavaScript APIs - The Web is the Platform - .toster conference, Moscow
NoSQL and JavaScript: a Love Story
NoSQL and JavaScript: a Love Story
Hibernate
Hibernate
OrientDB introduction - NoSQL
OrientDB introduction - NoSQL
Local data storage for mobile apps
Local data storage for mobile apps
Entity Framework Core & Micro-Orms with Asp.Net Core
Entity Framework Core & Micro-Orms with Asp.Net Core
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
HelsinkiJS meet-up. Dmitry Soshnikov - ECMAScript 6
A Rich Web experience with jQuery, Ajax and .NET
A Rich Web experience with jQuery, Ajax and .NET
Intorduction of Playframework
Intorduction of Playframework
Taking Web Apps Offline
Taking Web Apps Offline
Intoduction on Playframework
Intoduction on Playframework
Mehr von dylanks
Building a Modern JavaScript Framework by James Milner
Building a Modern JavaScript Framework by James Milner
dylanks
London Ajax User Group Meetup: Vector Graphics
London Ajax User Group Meetup: Vector Graphics
dylanks
Web Vector Graphics
Web Vector Graphics
dylanks
Dojo Mobile
Dojo Mobile
dylanks
Intro to WebSockets and Comet
Intro to WebSockets and Comet
dylanks
HTML5: Toolkits and Gaps
HTML5: Toolkits and Gaps
dylanks
Introduction to Canvas and Native Web Vector Graphics
Introduction to Canvas and Native Web Vector Graphics
dylanks
London Ajax User Group Meetup: Comet Panel
London Ajax User Group Meetup: Comet Panel
dylanks
SWDC 2010: Programming to Patterns
SWDC 2010: Programming to Patterns
dylanks
Mehr von dylanks
(9)
Building a Modern JavaScript Framework by James Milner
Building a Modern JavaScript Framework by James Milner
London Ajax User Group Meetup: Vector Graphics
London Ajax User Group Meetup: Vector Graphics
Web Vector Graphics
Web Vector Graphics
Dojo Mobile
Dojo Mobile
Intro to WebSockets and Comet
Intro to WebSockets and Comet
HTML5: Toolkits and Gaps
HTML5: Toolkits and Gaps
Introduction to Canvas and Native Web Vector Graphics
Introduction to Canvas and Native Web Vector Graphics
London Ajax User Group Meetup: Comet Panel
London Ajax User Group Meetup: Comet Panel
SWDC 2010: Programming to Patterns
SWDC 2010: Programming to Patterns
Kürzlich hochgeladen
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
SynarionITSolutions
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
The Digital Insurer
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Principled Technologies
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Principled Technologies
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Igalia
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Boston Institute of Analytics
Kürzlich hochgeladen
(20)
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
Intro to HTML5 Web Storage
1.
Web Storage
Dylan Schiemann (@dylans) SitePen, Inc. HTML5 Code Camp, October, 2010 © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
2.
© SitePen, Inc.
All Rights Reserved Sunday, October 17, 2010
3.
Web Storage Timeline
Cookies Flash Storage Dojo Offline/Storage, Google Gears localStorage and sessionStorage window[‘name’] hack WebDatabase and IndexedDB © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
4.
WebSQL API
Currently supported by Safari, Chrome, and Opera. Will not be supported by Mozilla. SQL, query-based transactions Asynchronous interactions Editor’s Draft: http://dev.w3.org/html5/webdatabase/ Will be easy to use for those well-versed in SQL © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
5.
WebSQL: Open Connection,
Create Table // Connect to the db var db = window.openDatabase("MyDB", "", "My database", 1024); // If the db has not been initialized for this user... if (db.version != "1") { // User's first visit. Initialize database. db.changeVersion(db.version, "1", function(tx) { // Create "users" table tx.executeSql("CREATE TABLE users(id INTEGER PRIMARY KEY, name TEXT);"); }, null, function() { // Success! console.log('success!'); }); } else { // DB already created, move on.... } © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
6.
WebSQL: Add Records
// Connect to the db var db = window.openDatabase("MyDB", "1", "My database", 1024); // Create a transaction db.transaction(function(tx) { // Execute a SQL statement tx.executeSql("INSERT INTO users (name) VALUES (:name);", // sql [{ name: 'Dylan'}], // Object (data) function(tx, results) { // Success! console.log('Added user. ID: ' + results.insertId,results); }, function(tx,e) { // Error! console.log('Error! ',e); } ); }); © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
7.
WebSQL: Retrieve Records
// Connect to the db var db = window.openDatabase("MyDB", "1", "My database", 1024); // Create a transaction db.readTransaction(function(tx) { // Search for all users tx.executeSql("SELECT * FROM users", [], function(tx, results) { // Get result rows var rows = results.rows; // For each row for(x = 0; x < rows.length; x++) { // Get the user information! var user = rows.item(x); console.log('Found user: ' + user.name); } }); }); © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
8.
IndexedDB API
Actively developed by Mozilla Initial support will begin with Firefox 4 (4b6 has issues) Currently a working draft with the W3C Not SQL-based; JavaScript object storage with indexes Asynchronous interactions Working Draft: http://www.w3.org/TR/IndexedDB/ Dojo and Persevere implement it © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
9.
IndexedDB: Open Connection,
Create Table // Attempt to open a database var request = window.indexedDB.open("MyDB","My database"); // DB name, description // Add "success" handling request.onsuccess = function(event) { // Check to see if the database has been created if(event.result.version != "1") { // not created // Create users table (table name, key, autoincrement?) var tableRequest = db.createObjectStore("users","id",true); // Success! tableRequest.onsuccess = function() { // Save as created! db.setVersion("1"); }; } }; // Account for errors request.onerror = function(event) { //handle the error }; © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
10.
IndexedDB: Create a
Store with Data // Attempt to open a database var request = window.indexedDB.open("MyDB","My database"); // DB name, description // Add "success" handling request.onsuccess = function(event) { // Grab a store var objectStore = event.result.objectStore("users"); // Add a record objectStore.add({ name: "Dylan", role:"CEO" }).onsuccess(function(){ // Success! console.log("Record saved!"); }); // Add another record objectStore.add({ name: "David", role:"Engineer" }).onsuccess(function(){ // Success! console.log("Second record saved!"); }); }; © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
11.
IndexedDB: Retrieve All
Data // Attempt to open a database var request = window.indexedDB.open("MyDB","My database"); // DB name, description // Add "success" handling request.onsuccess = function(event) { // Open a cursor on the users store cursorRequest = event.result.objectStore("users").openCursor(); // If successful... cursorRequest.onsuccess = function(e) { // Grab the cursor var cursor = e.cursor; // If cursor is null, exit if(!cursor) { return; } // Get reference to the object at the cursor position var record = e.cursor.value; // Log object to the console console.log("User: " + record.name + "; Role: " + record.role); // Continue! cursor.continue(); }; }; © SitePen, Inc. All Rights Reserved Sunday, October 17, 2010
Jetzt herunterladen