| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jul 1, 2008, at 10:42 AM, David Durkee wrote:Your best bet for (1) is to use _javascript_ and key events to restrict character entry (or validate via _javascript_ using onchange events) like you would for any modern web browser.
I'm creating a web application for iPhone that has several text entry fields for numeric data. I've been looking for how to 1) restrict character entry to numbers, or numbers and decimal points, and 2) have the iPhone default to the numeric keyboard when one of these fields is selected. Any clues?
Per (2), iPhone OS 1.x would bring up a numeric keyboard for some text fields based on the name of the field, but we found this caused too many compatibility issues (sometimes the user needed to enter non-numeric characters, but couldn't since they couldn't switch keyboards). This feature was removed in iPhone OS 2.0.
If you would like to see such a feature added (e.g., per the Web Forms 2.0 spec <http://www.whatwg.org/specs/web-forms/current-work/> and HTML5 <http://www.whatwg.org/specs/web-apps/current-work/#relationship2>), please file a bug at <https://bugreport.apple.com/>.
You may create a free "online" account at <https://connect.apple.com/> if you don't already have an Apple Developer Connection (ADC) account.
Dave
_______________________________________________ Do not post admin requests to the list. They will be ignored. Safari-iPhone-Web-Dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/safari-iphone-web-dev/email@hidden This email sent to email@hidden
| References: | |
| >Numeric text fields (From: "David Durkee" <email@hidden>) | |
| >Re: Numeric text fields (From: David Kilzer <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.