Tom Sucks

Everything sucks, but we can make it suck less

How to make web form bring up phone keypad on iPhone June 18, 2008

Filed under: Apple,iphone — Tom @ 11:07 pm

I seemed to recall a web form bringing up the phone keypad (nice big numbers, for when you only want to input numbers) on my iPhone’s web browser, Safari. I looked into it, and found a apple web dev thread (in reverse order, as it’s an e-mail) saying that if you use name=”phone” in the input field, it will bring up the phone pad. That’s great. Sadly, it apparently breaks in iPhone OS 2.0. (Don’t know about zip, as Ben Nadel found, though).

I was looking at Web Forms 2.0, a part of HTML5/WHATWG, and it seems to make all this unnecessary. There’s the ability to specify what a field is, and hopefully the iPhone will adopt it and act better. But non iPhone users might not understand what I mean here…

On the iPhone, in the address book, clicking in the e-mail field (or clicking in the to field in a new e-mail) will produce the keypad you see advertised, but at the bottom there will be buttons for @, ., and .com. This is because these are things that go in an e-mail address, not a space button. On websites, it’s / . and .com. Again, things that actually go in a website address. This is why the input types of email and url are great. date is great too, because the iphone uses… well, it’s like an odometer with rolling wheels, and you can ‘roll’ to Dec 31, 1955 easily. Much easier than typing it in.

In short, Web Forms 2.0 will enable the iPhone “virtual” keypad, and other virtual select options, to be just so much more awesome.

Advertisements
 

One Response to “How to make web form bring up phone keypad on iPhone”

  1. Pulauweb web hosting murah indonesia This web site is really a stroll-by way of for all the information you needed about this and didn’t know who to ask. Glimpse here, and also you’ll undoubtedly discover it. I have info for you, on a cheap web hos…

    This web site is really a stroll-by way of for all the information you needed about this and didn’t know who to ask. Glimpse here, and also you’ll undoubtedly discover it. I have info for you, on a cheap web hosting that has customers in asia and eur…


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s