I can't find the documentation right now, but if you add "_zip" or "_phone" to your input's name, Safari for iPhone will default to the numeric keyboard. I'm not sure if the underscore is required - try it both ways.
Amanda On Jun 25, 2:14 pm, brente <[email protected]> wrote: > They had this feature in for OS 1 but removed it at OS 2+ for some > reason. It is not enabled for OS3 yet, but many people including > myself would love to have this feature. Apple .... hello... > Bueller ... Bueller ... > > There is another solution, to have a javascript number picker (go > towww.vw.comon your iphone and look at the dealer locator). This is > cool if you have only one field, but if it's a zip code field in a > form with many fields, this creates a multitude of usability issues > including but not limited to: > > 1. every text field will automatically popup the keyboard. you can > close it with javascript by assigning the field to be disabled/ > readonly etc, but they keyboard is too quick and pops up and then down > again. not good. also, if you want the 'previous next' buttons to > work, the field must be enabled to begin with. this is key because if > you make them defaulted to disabled/readonly, those buttons will SKIP > the field - as expected. > > 2. you can make your custom input a DIV with an onclick func instead, > which solves the keyboard popup problem, but you cannot assign a > tabindex to anything but a text or text area input (despite that you > are supposed to be able to add it to an A HREF, DIV, etc). this is > problematic due to the 'next previous' buttons that show with the > keyboard. not being able to assign a tabindex will make those buttons > jump past your custom field. this is a sub-standard experience and > for me a deal-breaker, I had to just use the normal keyboard on a site > due to this. > > Anyone else solve this in another way and have a working example to > share? > > cheers, Brent --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
