nnnjjj123
2020-11-17 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
-------------------------------------------------------------------------------
Dojo Storage
-------------------------------------------------------------------------------
Version X.XXX (does not have separate versioning -- versioned by release date)
Last Release date: January 2010
-------------------------------------------------------------------------------
Project state:
experimental
-------------------------------------------------------------------------------
Credits
    Brad Neuberg
    Alex Russell
 
LocalStorage, BehaviorStorage, CookieStorage:
    Jens Arps
-------------------------------------------------------------------------------
Project description
 
dojox.storage provides a JavaScript abstraction for persistent storage
as well as pluggable implementations which typically use native browser
extensions (e.g. Flash player, Gears)
 
-------------------------------------------------------------------------------
Dependencies:
 
FlashStorageProvider requires the Flash player
GearsStorageProvider requires the Gears extension
LocalStorageProvider does not require any plugins but will run only in certain
browsers (see below)
BehaviorStorageProvider does not require any plugins but will run only in IE 5+
CookieStorageProvider has no requirements
The various Air*StorageProviders require Adobe's AIR software
 
The open source mtasc compiler (www.mtasc.org) is needed to build the
ActionScript into SWF format.  The SWF object is maintained within svn, so
this step is only necessary if Storage.as is modified.  A sample build script
is provided (buildFlashStorage.sh)
 
-------------------------------------------------------------------------------
Documentation
 
See http://dojotoolkit.org/reference-guide/dojox/storage.html for Dojo Storage docs.
 
See dojox/storage/demos/helloworld.html for a simple Hello World example
you can base your code off of.
 
-------------------------------------------------------------------------------
Installation instructions
 
If you want to use Dojo Storage in a web browser:
 
These installation instructions are to use Dojo Storage in a web browser; at
runtime, Dojo Storage will autodetect and use the best available storage
option. This includes:
 
  * localStorage: HTML 5 Web Browsers (Firefox 3+, Safari 4+, IE 8+)
  * Google Gears (Plugin)
  * globalStorage (Firefox 2+)
  * userData Behavior (IE 5+)
  * Hidden Flash (Plugin)
  * Cookies
 
To have access to Dojo Storage, require "dojox.storage":
 
dojo.require("dojox.storage");
 
 
If you want to use Dojo Storage with Adobe AIR:
 
[TBD! Why don't you write this and contribute!]
 
-------------------------------------------------------------------------------
Additional Notes
 
 
STORAGE TABLE
-------------
 
 
Browser        Used StorageProvider, in order of preference
 
IE 6 / IE7    GearsStorageProvider
            FlashStorageProvider
            BehaviorStorageProvider
            CookieStorageProvider
 
IE 8        LocalStorageProvider
            GearsStorageProvider
            FlashStorageProvider
            BehaviorStorageProvider
            CookieStorageProvider
 
Safari 3    FlashStorageProvider
            CookieStorageProvider
 
Safari 4    LocalStorageProvider
            FlashStorageProvider
            CookieStorageProvider
 
Chromium 4    FlashStorageProvider
(Mac OS)    CookieStorageProvider
 
Firefox 2    WhatWGStorageProvider (= globalStorage)
            GearsStorageProvider
            FlashStorageProvider
            CookieStorageProvider
 
Firefox 3    LocalStorageProvider
            GearsStorageProvider
            FlashStorageProvider
            CookieStorageProvider
 
Opera 10    LocalStorageProvider
            FlashStorageProvider
            CookieStorageProvider