[ 8 posts ]

Dmitri Snytkine

  • Username: lampcms.com
  • Joined: Thu Aug 27, 2009 6:04 am
  • Posts: 94
  • Location: Poconos, PA
  • Twitter: snytkine
  • GitHub: snytkine
  • Gists: snytkine
  • Offline
  • Profile
Tags:

Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 7:16 am
+0-
Does YUI3 has or will have support for Local Database storage?
Also, does anybody know what browsers support this and what browser don't?

Ryan Grove

YUI Developer

  • Username: rgrove
  • Joined: Tue Dec 09, 2008 9:55 pm
  • Posts: 275
  • Location: Portland, OR
  • Twitter: yaypie
  • GitHub: rgrove
  • Gists: rgrove
  • IRC: rgrove
  • YUI Developer
  • Offline
  • Profile

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 9:05 am
+0-
Hey Dmitri,

Check out the YUI 3 OfflineCache utility or the Storage Lite gallery module. They both provide API wrappers around client-side storage.

Jeff Craig

YUI Contributor

  • Username: foxxtrot
  • Joined: Thu Dec 04, 2008 9:20 am
  • Posts: 135
  • Location: Pullman, WA
  • Twitter: foxxtrot
  • GitHub: foxxtrot
  • Gists: foxxtrot
  • IRC: foxxtrot
  • YUI Developer
  • Offline
  • Profile

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 9:10 am
+0-
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.

Jeff Craig

YUI Contributor

  • Username: foxxtrot
  • Joined: Thu Dec 04, 2008 9:20 am
  • Posts: 135
  • Location: Pullman, WA
  • Twitter: foxxtrot
  • GitHub: foxxtrot
  • Gists: foxxtrot
  • IRC: foxxtrot
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 10:25 am
+0-
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

Dmitri Snytkine

  • Username: lampcms.com
  • Joined: Thu Aug 27, 2009 6:04 am
  • Posts: 94
  • Location: Poconos, PA
  • Twitter: snytkine
  • GitHub: snytkine
  • Gists: snytkine
  • Offline
  • Profile
Tags:

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 2:00 pm
+0-
Which one is better: StorageLite or Y.CacheOffline?

Ryan Grove

YUI Developer

  • Username: rgrove
  • Joined: Tue Dec 09, 2008 9:55 pm
  • Posts: 275
  • Location: Portland, OR
  • Twitter: yaypie
  • GitHub: rgrove
  • Gists: rgrove
  • IRC: rgrove
  • YUI Developer
  • Offline
  • Profile

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 2:06 pm
+0-
Depends. What do you want to do?

Dmitri Snytkine

  • Username: lampcms.com
  • Joined: Thu Aug 27, 2009 6:04 am
  • Posts: 94
  • Location: Poconos, PA
  • Twitter: snytkine
  • GitHub: snytkine
  • Gists: snytkine
  • Offline
  • Profile

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 2:37 pm
+0-
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

Ryan Grove

YUI Developer

  • Username: rgrove
  • Joined: Tue Dec 09, 2008 9:55 pm
  • Posts: 275
  • Location: Portland, OR
  • Twitter: yaypie
  • GitHub: rgrove
  • Gists: rgrove
  • IRC: rgrove
  • YUI Developer
  • Offline
  • Profile

Re: Does YUI3 have support for Local Database?

Post Posted: Wed Mar 30, 2011 2:49 pm
+0-
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.
  [ 8 posts ]
Display posts from previous:  Sort by  
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