HTML5 Guidelines for Web Developers
206 Chapter 8—Web Storage and Offline Web Applications without a network connection. Both approaches are very straightforward an ...
8.1 Storage 207 Table 8.1 Methods and attributes of the “Storage interface” Attribute/Method Return Value Description length int ...
208 Chapter 8—Web Storage and Offline Web Applications arrays or objects, they have to be converted to strings first. An elegant ...
8.1 Storage 209 The central part of the JavaScript code for the example in Figure 8.1 looks like this: window.onload = function( ...
210 Chapter 8—Web Storage and Offline Web Applications localStorage. The specification suggests that in such environments, local ...
8.1 Storage 211 Figure 8.2 The Firefox add-on Firebug displaying “sessionStorage” You can download the Firefox add-ons from thes ...
212 Chapter 8—Web Storage and Offline Web Applications Figure 8.3 Opera displaying Developer Tools Even Internet Explorer 9 offe ...
8.2 Offline Web Applications 213 The content of a cache manifest file can look like this: CACHE MANIFEST menu.html menu.js menu_ ...
214 Chapter 8—Web Storage and Offline Web Applications desired item is defined with the lowest level of the web server (/) and t ...
8.2 Offline Web Applications 215 Value Name Meaning 3 DOWNLOADING After a changed cache manifest was found, the browser download ...
216 Chapter 8—Web Storage and Offline Web Applications The error event can be especially useful when trying to locate errors. A ...
8.2 Offline Web Applications 217 Modern browsers have a function for changing to offline mode. In Mozilla Firefox, for example, ...
218 Chapter 8—Web Storage and Offline Web Applications The HTTP status code 200 means that the file was fully processed; 304 , h ...
8.2 Offline Web Applications 219 Figure 8.5 Firefox information on an element in the offline cache For the browser to reload the ...
220 Chapter 8—Web Storage and Offline Web Applications 8.3 Browser Support Support for Web Storage is present in all current bro ...
8.4 Example: Click to tick! 221 By applying the new techniques associated with HTML5, we created an indepen- dent program that u ...
222 Chapter 8—Web Storage and Offline Web Applications In the course of the game, the user is asked to find specific places and ...
8.4 Example: Click to tick! 223 Figure 8.7 Creating a new game using the administration interface The last step for making the n ...
224 Chapter 8—Web Storage and Offline Web Applications approximately 300-line long JavaScript file. It is primarily the placehol ...
8.4 Example: Click to tick! 225 functions. The button labeled Check for new games! reloads the website via lo- cation.reload and ...
«
7
8
9
10
11
12
13
14
15
16
»
Free download pdf