Page 2 of 5

The phone call button doesn't work.

Posted: Thu Oct 23, 2014 12:04 am
by Illya Stepanov

Hi -

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


The phone call button doesn't work.

Posted: Fri Oct 31, 2014 4:07 pm
by Jahmarley

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


The phone call button doesn't work.

Posted: Fri Oct 31, 2014 5:16 pm
by Evgene Karachevtsev

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


The phone call button doesn't work.

Posted: Sun Nov 02, 2014 4:30 pm
by Jahmarley

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


The phone call button doesn't work.

Posted: Mon Nov 03, 2014 4:11 am
by Yurii Orishchuk

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.


The phone call button doesn't work.

Posted: Wed Dec 10, 2014 1:13 pm
by Paritosh K

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.


The phone call button doesn't work.

Posted: Wed Dec 10, 2014 11:26 pm
by Yurii Orishchuk

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.


The phone call button doesn't work.

Posted: Thu Dec 11, 2014 1:36 am
by Paritosh K

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


The phone call button doesn't work.

Posted: Fri Dec 12, 2014 3:38 am
by Paritosh K

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.


The phone call button doesn't work.

Posted: Fri Dec 12, 2014 5:59 am
by Yurii Orishchuk

Hi Prritosh,

Please pass this tutorial:

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

Regards.