| Page 1 of 1 | [ 8 posts ] |
|
Does YUI3 has or will have support for Local Database storage?
Also, does anybody know what browsers support this and what browser don't? |
|
Hey Dmitri,
Check out the YUI 3 OfflineCache utility or the Storage Lite gallery module. They both provide API wrappers around client-side storage. |
|
I could be wrong, Ryan, I think he's talking about WebDB, not Local Storage, which to my knowledge, YUI doesn't wrap.
Storage Lite is great because it wraps several ways of solving that problem, WebDB is something that is either there (and I think all implementation conform to the proposal), or is not, so I'm not sure there is much value to a YUI wrapper. |
|
Wait, I see that on Safari 3, it will use the Database stuff, but I still don't know that's quite what's being looked for
|
|
Which one is better: StorageLite or Y.CacheOffline?
|
|
Depends. What do you want to do?
|
|
I want to keep track of read/unread threads, locally in browser. This is for my project Q&A site.
the key will be like threadid_userid and value is just an timestamp They links to questions could be visually identified as read/unread if timestamp in url and in storage match or don't match |
|
Sounds pretty simple. Both OfflineCache and Storage Lite would work well in this case. Storage Lite supports a slightly wider range of older browsers than OfflineCache, but both support all modern browsers. I'd recommend using whichever one you like more from an API perspective.
|
| Page 1 of 1 | [ 8 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group