jQuery Roundup: 1.6.3, lccache, Storagify
by
at 2011-09-06 07:00:00
original http://feedproxy.google.com/~r/dailyjs/~3/88SIwQaD40U/jquery-roundup
Note: You can send your plugins and articles in for review through our contact form or @dailyjs.
jQuery 1.6.3
jQuery 1.6.3 has been released, not long after RC1. This version fixes a much discussed XSS attack, animation browser tab switchiing issues, and better handling of HTML5 attribute names.
lccache
lccache (License: Apache 2.0) by Pamela Fox and John Munsch emulates memcache for client-side caching. John Munsch’s port uses Lawnchair instead of HTML5 Local Storage, which means it should work in older browsers.
The library has three methods: set
, get
and remove
:
// key, value, time/expiration
lccache.set('greeting', 'Hello World!', 2);
lccache.get('greeting');
// Returns 'Hello World!'
// Objects can also be stored
lccache.set('data', { 'greeting': 'Hello World!' }, 2);
lccache.get('data').greeting;
Pamela’s real world examples included developing against JSON APIs on unreliable networks. The most obvious example is a mobile web app. I’d also consider it for single page apps, because it makes knowing when to refresh data that might change on the server a lot easier.
Storagify
Storagify (GitHub: ekdevdes / Storagify, License: MIT/GPL) by Ethan Kramer combines HTML5 contenteditable
with Local Storage to make potentially any element editable. Calling $('selector').storagify('storageKey');
makes the element editable, and changes will be visible after a page refresh.
Now imagine combining this with a simple JSON API and you’ve got yourself a CMS in minutes!