Описание
iLocalStorage — библиотека, позволяющая сохранять данные на стороне клиента.
Используемые хранилища: DOM Storage, Web Database, Internet Explorer userData behavior, Flash Local Storage, HTTP cookies (document.cookie).
Пример использования:
iLocalStorage.setup({
'engines': [iLocalStorage.ENGINE_COOKIE, iLocalStorage.ENGINE_FLASH],
'defaultEngine': iLocalStorage.ENGINE_FLASH,
'swfUrl': '/release/ilocalstorage.swf'
});
iLocalStorage.ready(function()
{
this.use(iLocalStorage.ENGINE_COOKIE);
this.setup({
'cookieDomain': '.' + location.hostname,
'cookiePath': '/'
});
this.set('testText', 'text');
var ns = 'namespace';
this.set('testNamespace', true, ns);
this.set('testBoolean', true);
this.set('testNumber', 1234567890);
this.set('testObject', {'propertyOne': 1, 'propertyTwo': 2});
this.set('testRemove', true);
this.remove('testRemove');
if (!this.hasKey('isSetTestExpires'))
{
this.set('isSetTestExpires', true);
var expires = +new Date + 10 * 1000; // 10 секунд
this.set('testExpires', 1234567890, null, expires);
}
var value = this.get('testExpires');
alert('value: ' + value + '\ntypeof: ' + typeof value);
});Подробнее читайте в документации.
Скачать актуальную версию
ilocalstorage.zip — Код для использования на сайтах.
ilocalstorage-src.zip — Исходные коды.
30 Day Summary Nov 25 2011 — Dec 25 2011
|
12 Month Summary not available |
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.