Hi, I've been reading MacRumors and the forums for some time, and finally decided to register to share some of the things I've found while messing around with the iPhone's Safari.
I wrote a little test page as I've been messing around. It's not an app in the slightest bit. In fact, it's only really useful to other developers (who should feel free to look at the source for specifics on how I did things). It's best viewed on an iPhone, since the links at the bottom will actually all work on one.
I hope developers find at least some of this stuff useful (if nothing else, I don't think anybody else has figured out and posted the exact protocol name for looking up addresses in Google Maps).
I wrote a little test page as I've been messing around. It's not an app in the slightest bit. In fact, it's only really useful to other developers (who should feel free to look at the source for specifics on how I did things). It's best viewed on an iPhone, since the links at the bottom will actually all work on one.
- The iPhone is not running an incredibly fast processor. The test page animates two divs five seconds after the page loads (the animation adjusts the position and opacity of the divs). My iMac handles the animation without breaking a sweat. The iPhone strains a little bit. What I do now on the page seems to be about the limit of what you can expect to do on the iPhone (technologically, not creatively) without the framerate taking a dive into the crapper.
- It's probably a good idea to use a meta tag to set the page to be 480 pixels wide, then construct the app so that it looks good when it's 480 pixels wide (when the iPhone is held in landscape) as well as when it's scaled down to 320 pixels wide (when it's held in portrait).
- The protocol for calling a phone number is tel:. Example: <a href="tel:555-1212">Call Me</a>
- The protocol for sending an email is mailto:. Example: <a href="mailto:address@domain.com">Email me</a>
- The protocol for looking up an address on Google Maps is maps:. Example: <a href="maps:20 Infinite Loop Cupertino, CA">Look me up</a>
I hope developers find at least some of this stuff useful (if nothing else, I don't think anybody else has figured out and posted the exact protocol name for looking up addresses in Google Maps).