Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

The phone call button doesn't work.

Hi -

Use it this way:
pre
code
window.open('tel:' + localStorage.getItem('botaotel'), '_system');
/code
/pre

Jahmarley
Posts: 0
Joined: Mon Apr 16, 2012 8:21 pm

The phone call button doesn't work.

Hi,

I have been using the code: return "tel:"+value; to make telephone numbers click to call when retrieved from a database but it no longer works as i've updated Cordova.

Please assist in how I would adjust the code along with the one provided to make it click to call.

I have tried window.open('tel:' +value, '_system'); but this makes the device open the number to be called without clicking it.

appreciate the help.

thnx

Jahmarley

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The phone call button doesn't work.

Hello!

1) Please use a label instead of a link. You can stylize it to a link if you want via using CSS
2) Please use mapping as before
prereturn "tel:"+value;/pre
3) On click on lebal please use this code
prewindow.open($(this).text(), '_system');/pre

Jahmarley
Posts: 0
Joined: Mon Apr 16, 2012 8:21 pm

The phone call button doesn't work.

Hi Evgene,

Thank you for responding with that code. My numbers are now click to call :)

I have 1 more issue that I hope you can assist with.

Previous to the new code, the numbers displayed on the app without tel: in front of the number but it now displays.. see image:

Image

Can you advise as to how I can hide the word tel?

Thnx

Jahmarley

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

The phone call button doesn't work.

Hi Jahmarley,

Here is modification suggestion as you need:

1) Please use a label instead of a link. You can stylize it to a link if you want via using CSS

2) Please use mapping as before:

pre

return value;

/pre

3) On click on lebal please use this code:

pre

window.open(("tel:" + $(this).text()), '_system');

/pre

Regards.

Paritosh K
Posts: 0
Joined: Sun Dec 07, 2014 1:29 am

The phone call button doesn't work.

Hi i have tried the code
window.open('tel:+1234567890, '_system');
It opens the native dialer but the number is not loading.with every button it gives the same last number.i have given different nos.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

The phone call button doesn't work.

Hi Pritosh,

It seems you have broken code(does not have end ' for number string).

pre

window.open("tel:+1234567890", "_system");

/pre

Details: http://prntscr.com/5ffytx/direct

Regards.

Paritosh K
Posts: 0
Joined: Sun Dec 07, 2014 1:29 am

The phone call button doesn't work.

Thanx a lot the code was ok i mistakenly wrote it wrong in reply.after restarting the phone the problem resolved.

Paritosh K
Posts: 0
Joined: Sun Dec 07, 2014 1:29 am

The phone call button doesn't work.

Hi i need the app in landscape only. And want the database list in offline all the time it refresh only when i want it to be.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

The phone call button doesn't work.

Hi Prritosh,

Please pass this tutorial:

http://devcenter.appery.io/tutorials/...

Regards.

Return to “Issues”