| Please file bugs/enhancement requests if you'd rather see that behavior. Thanks!
Dave
On Jul 1, 2008, at 5:06 PM, David Durkee wrote: Why couldn't it just default to the numeric keyboard but allow switching to the alpha keyboard? And what was the name convention? I apparently did not hit on it by accident. :-)
David On Tue, Jul 1, 2008 at 1:50 PM, David Kilzer < email@hidden> wrote: On Jul 1, 2008, at 10:42 AM, David Durkee wrote: 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? 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. 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 |