Friday, April 28th, 2006
dojo.storage: Offline Access and Permanent, Client-Side Storage
Brad Neuberg has written a very thorough article on Offline Access and Permanent, Client-Side Storage, Thanks to Dojo.Storage.
He details his updated dojo.storage work via Moxie, a sample application.
What is dojo.storage?
Dojo.storage is a unified API to provide JavaScript applications with storage. It is a generic front-end to be able to provide all JavaScript applications a consistent API for their storage needs, whether this JavaScript is in a browser, a Firefox plugin, an ActiveX control, using Windows Scripting Host, etc. Further, the storage backends can use whatever mechanism is appropriate; dojo.storage automagically detects its environment and available storage options and selects the most appropriate one.
Future Storage Providers
- Cookie Storage Provider - uses cookies to persist the hash table
- Flash Storage Provider - uses Flash’s SharedObjects to persist data
- ActiveX Storage Provider - uses COM’s File APIs to persist data
- XPCOM Storage Provider - uses XPCOM’s File APIs to persist data
- Form Storage Provider - uses the text autosave features of a hidden form to save transient data (the Really Simple History library uses this trick)
- WHAT WG Storage Provider - uses native browser persistence to store data, as defined by the WHAT Working Group.
- IE Storage Provider - uses IE’s proprietary abilities to store up to 60K of data.













The Flash Storage Provider is ready to be used by folks; check out the blog post for details.
Wow, there are some definite applications I could use this for.
I highly recommend reading Brad’s post on his blog. What he has achieved is practically a miracle. I know he says dojo.storage is beta, but it seems far more tested than most beta stuff people throw up to get buzz. This is going to save all of us a great deal of time.
It’ so funny, 3 days ago I was bemoaning the fact that dojo news was sparse. Then bam, three big Dojo stories 3 days in a row. Thanks to ajaxian.com for keeping their eye on Dojo. Now if the documentation could just….
Dave: regarding docs: stay tuned.
We Have A Plan (TM).
It’s a very handy library. How about Storage Providers for online services like S5? (wrt S5 Javascript Bindings post last week.) Seems like they’d fit the abstraction just as easily as the local services.
Stockage d’informations côté client grâce à la librairie Dojo
Une bonne nouvelle pour tout les développeurs Web grâce à Dojo : la possibilité de pouvoir, de manière simple, intégrer à ses application des capacités de stockage du côté client. L’intérêt est grand : moins de place nécessaire…
Client side storage using Dojo
This is really cool. Ajaxian ran a story about a new capability built into the Dojo framework that provides persistent client-side storage. There’s even a link to a demo app. Although it has some limited use because, frankly, I want
Michael, I’ve been thinking about how to hide remote storage providers behind the StorageProvider API; the one problem is that the get() and getKeys() methods returns their values synchronously, while you would want these to be asychronous; having every method be asychronous, though, is a pain in the butt for normal, local programming. Do you have an idea on how to resolve this?
Wow, this Dojo looks like a mighty tool
Brad, Hadn’t thought about it like that. Still, there’s definitely a benefit to a unified interface.
I could only see the obvious solutions:
- Only support synchronous mode.
- Make the API support async as well, or introduce a second AsyncStorageProvider interface. Maybe async mode is also good for some local storage purposes anyway.
[...] Cookie Storage Provider - uses cookies to persist the hash table; Flash Storage Provider - uses Flash s SharedObjects to persist data; ActiveX Storage Provider - uses COM s File APIs to persist data more [...]
hi can u tell me how to use dojo storage to store dad at client side other than cookies
This is really cool. Ajaxian ran a story about a new capability built into the Dojo framework that provides persistent client-side storage. There’s even a link to a demo app. Although it has some limited use because, frankly, I want
Dojo is realii a gr8 framework. its cool, it doesnt require u to hav some specific technology on server side.
TEAMKILLERS is your comprehensive and safe online generic pharmacy for buying generic drugs like Generic Viagra, Sildenafil Citrate, http://www.teamkillers.com/generic_viagra.html , Kamagra, Silagra.
Our Online Pharmacy no Prescription doctors will evaluate your health information and provide you with a prescription, so you do not need a prescription from your regular family physician to cheap Generic Viagra. More info at: http://www.safemeds.com/
This is really cool. Do you have an idea on how to resolve this?
My page -
kaufen tamiflu