Web Development for iPhone?

Discussion in 'iPhone' started by stevento, Oct 4, 2008.

  1. stevento macrumors 6502

    stevento

    Joined:
    Dec 10, 2006
    Location:
    Los Angeles
    #1
    I have a question about the iPhone's web browser.

    in web pages, when a phone number appears, the iphone recognizes it and places a button there to call that number.
    but how does the iPhone recognize a phone number? i am taking a web development class and i want the iPhone to recognize this number. is that done in html?
    what i want to do is put a phone number in tags such that when viewed through the iphone browser, there is a call button there.
    any insight into this?
     
  2. Jonnyfive macrumors regular

    Joined:
    Feb 28, 2007
    Location:
    British Columbia
    #2
    I don't think it's in the web code. I believe that it's in the iphone code how it interprets and specific string of numbers.
     
  3. Witty lama macrumors member

    Joined:
    May 16, 2006
    Location:
    Sydney
    #3
    yes, it's automatic and part of the iPhone software - not the website.

    For example, when I'm looking up books in my university library catalogue using iPhone's safari, it thinks that the call numbers of the books are phone numbers. When I click on the number (which often look like this: "S 123.345/78") the phone asks if I want to call the number.

    There is no way that apple would have required that every website that wants this functionality have to embed special "phone number" html tags. The phone justs looks for a string of numbers and guesses that they might be for a phone.
     
  4. fishkorp macrumors 68020

    fishkorp

    Joined:
    Apr 10, 2006
    Location:
    Ellicott City, MD
    #4
    You can also for the browser to display a string as a phone number like this:
    Code:
    <a tel:5555551212>call me</a>
    
    At least you used to be able to do that with the 1.0 software, not sure if that's changed over the last 16 months as I've never bothered trying it. When the original iPhone was announced and Jobs said you could only do webapps they had a list of how you can get your page to call maps, make calls, etc.
     

Share This Page