Is there a method for getting the iPhone users phone number using HTML5/jQuery?
All I see is how to do this with the SDK.
EDIT:
So far the only thing I've found is on the initial install ask the user for their number and store it.
Is there a method for getting the iPhone users phone number using HTML5/jQuery?
All I see is how to do this with the SDK.
EDIT:
So far the only thing I've found is on the initial install ask the user for their number and store it.
You could just ask the user:
var phone_number = prompt("Please enter your phone number:");
i am pretty sure that this is not possible. Imagine the security leak it would be if any site could just retrieve the phone number of each visitor.
There is a Draft from W3C on Device API. This API will provide access (submitted to user permission) to Tasks, Contacts, Calendar, Camera, Microphone, Messaging Service, Communication Log, System Information (device information, battery level, network status, ...),... But it is not yet implmented in any browser.
Because of a big expectation, these APIs will probably be implemented very quickly in WebKit (base of iPhone and Android browsers). Mozilla is working on a draft implementation of Contact API with the Contact AddOn