CNET también está disponible en español.

Ir a español

Don't show this again


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.