4 ms·
Check out HTML5's offline features: http://www.w3.org/TR/offline-webapps/ http://www.w3.org/TR/offline-webapps/ While it's not fully implemented anywhere, Saf
by bensummers 17y ago
Check out HTML5's offline features:
http://www.w3.org/TR/offline-webapps/ http://www.w3.org/TR/offline-webapps/
While it's not fully implemented anywhere, Safari and Firefox implement some useful bits.
It also has the bonus that your offline code can work on the iPhone and Android.
- mbrubeck 17y agoIt gets complicated if you want to support multiple browsers. The current Android browser does not have the HTML5 Database or Offline Applications APIs enabled, but it does have Gears built in. Firefox 3.5 supports HTML5 offline apps but not database storage. Gears is available as a Firefox extension. IE8 supports HTML5 key-value storage but not HTML5 database storage or offline applications. Gears is available as a plugin for IE. Safari for Mac supports both Gears and large parts of HTML5. Safari for iPhone supports HTML5 but not Gears. Take a look at: http://code.google.com/p/webstorageportabilitylayer/ http://code.google.com/p/webstorageportabilitylayer/ This is the database access layer that Google wrote for GMail mobile. It works with both Gears and HTML5, so you can use SQLite on IE, Firefox (including pre-3.5 versions), Safari, Chrome, iPhone, and Android. However, it provides only a low-level (raw SQL) API and is asynchronous for performance reasons. You'll have to write a bit more code than if you use a high-level Gears-only library like ActiveJS. Clearly things are simpler if you can choose either Gears or HTML5, and support just one or two browsers. Some features are more widely supported using Gears right now, but this will probably tilt the other direction soon. For example, the Chromium developers have no plans to add Gears support on Linux, because they see HTML5 as the way forward.