javascript - How do you get the number keypad to come up in an iPhone web app? - Stack Overflow

On a web page that is to be displayed on an iPhone, is there a way to get the number pad to e up when t

On a web page that is to be displayed on an iPhone, is there a way to get the number pad to e up when the user taps in the field, instead of the qwerty keypad?

This guy says here's how to do it, but as of 2.0, this "feature" was disabled.

I'm guessing there's some fancy javascript to employ to get around this limitation?

On a web page that is to be displayed on an iPhone, is there a way to get the number pad to e up when the user taps in the field, instead of the qwerty keypad?

This guy says here's how to do it, but as of 2.0, this "feature" was disabled.

I'm guessing there's some fancy javascript to employ to get around this limitation?

Share Improve this question edited Feb 17, 2012 at 3:24 manda asked Nov 10, 2008 at 22:52 mandamanda 4,8811 gold badge27 silver badges34 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 2

If you use the HTML5 number input type, the keyboard will default to showing numbers. It's not the number-only keyboard, but it's a bit better than just text.

Yes, this used to be possible by including the word "zip" in your text field's name attribute. Unfortunately, Apple seems to have removed this in 2.0 and later. I suggest you file a bug.

You can make calls from JavaScript to Objective-C and then display what ever you want. If you want a framework to help you out you could check out QuickConnectiPhone. It is available at https://sourceforge/projects/quickconnect/.

You could also check out http://tetontech.wordpress.. This is the develpment blog for QuickConnect. It has some example code in addition to that which is included in the sourceforge download.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744586349a4582334.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信