Hi -
Use it this way:
pre
code
window.open('tel:' + localStorage.getItem('botaotel'), '_system');
/code
/pre
Hi -
Use it this way:
pre
code
window.open('tel:' + localStorage.getItem('botaotel'), '_system');
/code
/pre
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
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
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:
Can you advise as to how I can hide the word tel?
Thnx
Jahmarley
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.
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.
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.
Thanx a lot the code was ok i mistakenly wrote it wrong in reply.after restarting the phone the problem resolved.
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.