Submit Your Article Forum Rules

Results 1 to 10 of 10

Thread: Mobile Development Clicking Phone Number To Call The Number

  1. #1
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,249

    Mobile Development Clicking Phone Number To Call The Number

    So I'm going full steam ahead into the world of mobile development and seo for mobile development as well. I've just finished launching a mobile site for one of my clients and am proud to say everything is in working order but this morning I had to figure out one more thing - that being, giving the mobile user the ability to simply click on a phone number anywhere on the mobile site and have the phone actually make the call.

    I looked and looked and I found not only W3C's recommendations for mobile phone development but also their suggestion that we make phone numbers on mobile sites "click to call"...

    I basically concluded that there was no reason I couldn't offer this to my client, the code is simple and as follows:

    Code:
    <a href="tel:[PHONE-NUMBER]">[PHONE-NUMBER]</a>
    I hope this helps someone in the future looking to find a way to make the phone number clickable to call.

    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  2. #2
    Senior Member
    Join Date
    Apr 2009
    Posts
    256
    Thank you for the incitement.
    I tried it with a Nokia N95 and it worked fine.

  3. #3
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,249
    OH and yes, the DOCTYPE declaration at the top pf your documents (code) should be as follows:

    Code:
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
    
    "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  4. #4
    Senior Member jannmirch's Avatar
    Join Date
    Sep 2005
    Posts
    229
    This is very cool. Is it just because I have a Droid (LOVE IT!) that I can click on a number on my mobile browser and dial? I didn't do anything special on my site or those of my clients but I can still click and dial.

    Do we need to worry about different mobile browsers? Cuz IE doesn't give us enough fits!!
    Marketing & Web Design www.WestchesterMarketingCafe.com
    Twitter: @JannMirch
    FB: Marketing Cafe

  5. #5
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,249
    What do you mean? if you mean for testing I've found this little mobile website simulator and it seems to work quite decent with rendering what is actually seen on a Blackberry and iPhone.

    Are you going mobile Jann?
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  6. #6
    Senior Member jannmirch's Avatar
    Join Date
    Sep 2005
    Posts
    229
    I was just saying that I have not done any special programming or coding on my own site - or any of my clients' for that matter - and when I pressed the phone number on mine and another site I was testing, it went to my phone with the number already in. So my question becomes, does the Droid OS eliminate the need for the coding you shared but others such as the Blackberry and iPhone still require it.

    I'm not leaving my desktop behind anytime soon, but I love having the flexibility to go online anywhere with my phone. And with more and more mobile users it just makes sense to work this into the process when developing a website.
    Marketing & Web Design www.WestchesterMarketingCafe.com
    Twitter: @JannMirch
    FB: Marketing Cafe

  7. #7
    WebProWorld MVP morestar's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, Ontario (Burlington)
    Posts
    4,249
    Well I know the click to call number wasn't working on a iPhone or Blackberry unless I added that code. I'm not sure why your Droid is able to determine that it's a number - maybe code wise, when it sees a number as such it checks to see if it's a valid phone number and if so, it calls it.

    Ya apparently, from an article I read last week, more than 80% of users will be access the internet via a mobile device by 2020 - that's a sweet selling feature for our clients...
    Join a free dating site and meet single people in your area.
    Submit your content at my content publishing site and promote your business, services or opinions.

  8. #8
    Junior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    2
    Morestar, yeah Its true that in 2020 the number of users of Internet via mobile will b reach up to 80%. And its a good news for mobile vendors.

  9. #9
    Junior Member
    Join Date
    Jun 2010
    Location
    India
    Posts
    2
    Morestar, yeah Its right. The internet users via mobile will b reach up to 80% in 2020. and its a great news for mobile vendors.

  10. #10
    WebProWorld MVP DaveSawers's Avatar
    Join Date
    Dec 2006
    Location
    Lunenburg, Nova Scotia, Canada
    Posts
    760
    I'm glad this thread was brought to the top of the list because I was looking for it the other day and couldn't find it. I remembered seeing it some months ago.

    Anyway, what I want to do is implement automatic dialling from any computer that's phone enabled. For example, I have Skype on my computer and should therefore be able to click a number to call it. I tried the tel: link suggested here but Firefox just says it doesn't have anything to deal with that. This is not the kind of message I want users to see.

    Is there a generic way to do this for any browser/computer combination that will dial the number if it can, not show a link if it can't and not complain about anything?
    Dynamic Software Development
    www.activeminds.ca

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •