MacDailyNews - Where Mac news comes first

Apple Online Store

5 Day Most Commented

Opinion Archive

Current Headlines

Latest Joy of Tech

  • Latest Joy of Tech!

MacNN

AppleInsider

Macworld UK

TUAW

MacRumors

Yahoo! Finance AAPL

iTunes Top 10 Albums

Mac OS X Downloads

Sat, Aug 30, 2008 - 08:18 AM EDT  —  AAPL: 169.53 (-4.21, -2.42%)  |  NASDAQ: 2367.52 (-44.12, -1.83%)

Storing iPhone apps locally with data URLs
Wednesday, July 18, 2007 - 02:16 PM EDT

"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.]

  • Social Web
  • E-mail






Always -- Free ground shipping with orders over $50 at the Apple Store.

Reader Feedback: ( = registered)

Jul 18, 07 - 02:20 pm Comment from: Jim - TIV

This is

MDN word "Good"

Good news...

Jul 18, 07 - 02:24 pm Comment from: Mac?

I have a new header for you:

MacDailyNews
where iPhone news comes first...Mac stuff second.

...or sometimes not at all ... YEAH BABY!

Jul 18, 07 - 02:47 pm Comment from: scott

apple still makes macs?

Jul 18, 07 - 03:10 pm Comment from: shawnpetriw

Please stop giving MDN grief for "too much iPhone" and not enough Mac news. They just aggregate what's being said about products from Apple. Get over it. Your beef is with the media, not MDN.

Jul 18, 07 - 03:17 pm Comment from: Woody

Woah, now this is a cool idea. I need this for some stuff here at work that I want to function even if network access is unavailable.

As for the people giving MDN grief about all the iPhone stuff, please remember that His Steveness himself said the iPhone is running a slimmed version of Mac OS X. And, if you had used one, you would realize that the iPhone is far more than just a phone with internet. It really is a Mac in your hand.

Jul 18, 07 - 03:21 pm Comment from: Woody

What MDN does need some grief about are these dumb-ass FastClick click-thru ads on article links. GRRRR.

MW: like, as in, "I don't like them."

Jul 18, 07 - 03:53 pm Comment from: Mac?

oh c'mon, it was all in fun. I love MDN, why else would I be here.

Jul 18, 07 - 04:03 pm Comment from: Matt

The interstitial ads need to go.

MW: "low"... ads on MDN have reached a new low.

Jul 18, 07 - 04:19 pm Comment from: ../.

Woody: And, if you had used one, you would realize that the iPhone is far more than just a phone with internet. It really is a Mac in your hand.

At the moment, iPhone is just a phone with the Internet plus iPod. Sure, the UI is a breakthrough and all that, but iPhone is not a Mac in your hand. Not yet anyway. Its true potential has not been brought out yet. There is no doubt that Apple has a grand plan for iPhone for the future, but there is no need to jump ahead and proclaim what iPhone currently is not.

Jul 18, 07 - 05:51 pm Comment from: @../.

If you used an iPhone you would KNOW that it is a mac in your hand. It is not just phone, internet and ipod. It is iCal that syncs, it is Safari ( although a little crash prone) and Mail.app. All with OSX interface and deep access to settings. And that is not including the obvious features they will bring in with Leopard (the to do and notes features of the new mail.app and possibly the realization of "Home on A Mac".

Besides if you look at what is being developed or have played with something like Teleknisis (which is in such a baby Alpha stage that it hasn't even reached a tenth of its potential) then the iphone becomes a "thin client"-like device with access back to your mac.At current you can play media, browse files and open them on either the iphone or the mac. Launch applications, run applescripts. And this has all been developed within weeks and without access to the actual core of the OS.

The iPhone is not just another smartphone it is a computer running OSX. That is a fact. Not conjecture. Not a pipe dream.

The potential of this device is limited only by certain hardware realities in the current deviec and the imagination of those that use it (and/or develop for it).

Jul 18, 07 - 06:58 pm Comment from: Jimmy Hugs

Has anyone else come up with some useful data url apps besides the ones on the original post? This is pretty rad.

Jul 19, 07 - 12:23 pm Comment from: ../.

Running OS X doesn't not make iPhone a Mac. You don't even have a Finder on iPhone for Pete's sake.

Besides if you look at what is being developed or have played with something like Teleknisis (which is in such a baby Alpha stage that it hasn't even reached a tenth of its potential) then the iphone becomes a "thin client"-like device with access back to your mac.At current you can play media, browse files and open them on either the iphone or the mac. Launch applications, run applescripts. And this has all been developed within weeks and without access to the actual core of the OS.

Bingo! You need something like Telekinesis to browse files, launch AppleScript and so on. You are proving my point that iPhone is not yet a Mac. A Mac does all that without a third party app.

The potential of this device is limited only by certain hardware realities in the current deviec and the imagination of those that use it (and/or develop for it).

Exactly my point. Read my post again. This is what I wrote: Not yet anyway. Its true potential<b> has not been brought out yet. There is <b>no doubt that Apple has a grand plan for iPhone for the future, ... As you see, I never said anything about iPhone staying like what it is forever. I just disagree with you that iPhone is a Mac now. It's not, regardless of what iPhone may morph to in the future.

Reader feedback page 1 of 1 pages:

Always -- Free ground shipping with orders over $50 at the Apple Store.

Add Your Feedback:

Register or Login

Name:

Email: (optional)

Emoticons | Allowed HTML Tags

Remember my personal information   Notify me of follow-up comments?

Please enter the "MDN Magic Word" you see in the image below: