Ingeniously simple method for storing iPhone Web apps locally

Ingeniously simple method for storing iPhone Web apps locally

W. Clawpaws, who maintains the Life with Lunchhooks blog has discovered an amazingly simple and simply amazing method that allows Web apps to be stored locally on the iPhone, presenting the first viable solution to a major point of contention for developers. Essentially, the method stores an entire set of HTML and JavaScript in a bookmark by utilizing the data: URL. All page content is thus stored in bookmark data, and can be accessed when no network connection exists -- even if the iPhone is in Airplane mode.

Click on the following link using an iPhone: Tip Calculator

Then press the " " button to add it as a bookmark.

You can now access this basic Tip Calculator (written by W. Clawpaws) by simply opening the saved bookmark, even with no active data connection.

W.Clawpaws has even posted a one-line Perl script that converts HTML into a data: URL.

There are a few caveats to the code that can be stored in bookmarks, and very large bookmark data files may crash the iPhone, but this is a truly tremendous bit of progress.

Featured Video
6
This content is rated TV-MA, and is for viewers 18 years or older. Are you of age?
Sorry, you are not old enough to view this content.

Metal Gear Solid V gets a perfect 10

Jeff Bakalar talks with GameSpot's Peter Brown about his perfect 10 review score of Metal Gear Solid V: The Phantom Pain.

by Jeff Bakalar