Page 1 of 2

Telephone number hyperlink or button to make a call

Posted: Sat Feb 18, 2012 3:02 pm
by anilsojitra

Using Tiggzi to build a mobile website, is it possible to have a hyperlink that is a telephone number that can be dialled by the mobile phone when clicked?

Alternatively is it possible to have button with an attached telephone number that is dialled when clicked?


Telephone number hyperlink or button to make a call

Posted: Sat Feb 18, 2012 4:11 pm
by maxkatz

It can be done with JavaScript: tel:xxxxxxxxxx. For example, run this on button click:
code
window.location.href='tel:9999999999';
/code


Telephone number hyperlink or button to make a call

Posted: Wed Feb 22, 2012 12:28 pm
by anilsojitra

Thanks Max.


Telephone number hyperlink or button to make a call

Posted: Fri Feb 24, 2012 3:42 pm
by anilsojitra

Works a treat. Cheers.


Telephone number hyperlink or button to make a call

Posted: Mon Mar 12, 2012 7:01 am
by sidelev

Max, I have another question.

What is I need to call USSD command?
To check balance for example.

If I use
window.location.href='tel:*123#';

When I push the button my phone show call procedure like "*123" without "#"

What should I do to place "#" also to calling number?

Thanks!


Telephone number hyperlink or button to make a call

Posted: Mon Mar 12, 2012 7:31 pm
by maxkatz

Telephone number hyperlink or button to make a call

Posted: Fri Jun 21, 2013 7:47 pm
by Nayef

Unfortunately not


Telephone number hyperlink or button to make a call

Posted: Fri Jun 21, 2013 8:38 pm
by Anton Artyukh5836028

Hi Nayef

Try to replace # by code%23/code


Telephone number hyperlink or button to make a call

Posted: Fri Jun 21, 2013 8:41 pm
by Nayef

Telephone number hyperlink or button to make a call

Posted: Sat Sep 07, 2013 10:08 am
by Deon

How would you dial a number based on the value of a label?

Thanks