HTML5 File API

Great stuff just in time for a little project at work. The idea is to download JSON data while offline to be stored on a USB stick as a backup. It can then be reloaded later into an HTML5 offline application, without having to go online.
Building a quick prototype on Firefox 5, the FileReader() works quite nicely - read JSON data as string, parse into JSON. Too easy! Unfortunately the FileWriter() does not seem to be implemented yet in Firefox 5 or the latest Chrome, so I might need to use a Flash or Java Applet based solution for the "Backup Data to File" feature. The one downside of working with cutting edge technology... :P

Comments