Storing iPhone apps locally with data URLs

“Some people think that you need net access to run web-based applications on your iPhone. Not so,” W. Clawpaws reports for Life with Lunchhooks.

“By using a data: URL, the entire page content is all in the URL. If save a bookmark for this URL, you can access this little JavaScript-based app even in airplane mode,” Clawpaws reports.

“By putting images inline using data: URLs, you can create pretty rich pages and store them locally. I created a 363,488 byte URL for my home page (complete with images) and it loaded just fine on my iPhone,” Clawpaws reports.

Full article, with sample app and code examples, here.

[Thanks to MacDailyNews Reader “JMS in Texas” for the heads up.]

Reader Feedback

This site uses Akismet to reduce spam. Learn how your comment data is processed.