If I may offer the following (works in IE7/8 on a server, not sure about 9):
Code:
var storage, fail, uid;
try{
uid = new Date();
storage = window.localStorage;
storage.setItem(uid,uid);
fail = storage.getItem(uid) != uid;
storage.removeItem(uid);
fail && (storage = false);
}catch(e){}
if(storage){ alert("Storage YES"); } else { alert("Nope.. ain't happenin'"); }
__________________
^_^
If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
* The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".
|