anilsojitra
Posts: 0
Joined: Fri Jan 20, 2012 10:51 am

Telephone number hyperlink or button to make a call

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Telephone number hyperlink or button to make a call

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

anilsojitra
Posts: 0
Joined: Fri Jan 20, 2012 10:51 am

Telephone number hyperlink or button to make a call

Works a treat. Cheers.

sidelev
Posts: 0
Joined: Mon Mar 12, 2012 7:01 am

Telephone number hyperlink or button to make a call

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!

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

Telephone number hyperlink or button to make a call

Unfortunately not

Anton Artyukh5836028
Posts: 0
Joined: Wed May 08, 2013 12:57 pm

Telephone number hyperlink or button to make a call

Hi Nayef

Try to replace # by code%23/code

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Telephone number hyperlink or button to make a call

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

Thanks

Return to “Issues”