Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Contributor
tonystark
Posts: 43
Registered: ‎09-26-2011
My Carrier: Generic
Accepted Solution

Call Function

Hi all, i wanna ask, i have created a button that i named it call button. That button contain a phone number, my purpose is when user press that button, thats gonna make blackberry device call the phone number, how i can apply this call function using webwork?

 

So much thanks, i really need you all help :-)

Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010

Re: Call Function

[ Edited ]

very easy:

 

for sample:

<a href="#" onclick="blackberry.launch.newPhoneCall({'dialString':'5198887465','smartDialing':false })">Call RIM</a>

 or:

<input type="button" value="Call RIM" onclick="blackberry.launch.newPhoneCall({'dialString':'5198887465','smartDialing':false })" />

 

 

Please use plain text.
Contributor
tonystark
Posts: 43
Registered: ‎09-26-2011
My Carrier: Generic

Re: Call Function

@agungeddy : so much thanks, should i include phone are like +6221..... for the number, or just ordinary phone number? btw are you indonesian? :-) thanks

Please use plain text.
Developer
agungeddy
Posts: 164
Registered: ‎08-26-2010

Re: Call Function

[ Edited ]

iya benar, saya orang indonesia, lokasi Jakarta.
Penulisan nomer telepon bebas, bisa pakai kode wilayah ataupun tidak, tapi disarankan lebih baik pakai kode wilayah.

============================================================================================

Yes you're right, i'm an indonesian, at Jakarta. The phone number format can use area code or not, it's up to you, but it is prefer to use the area code.

Please use plain text.
Contributor
tonystark
Posts: 43
Registered: ‎09-26-2011
My Carrier: Generic

Re: Call Function

Salam kenal mas agung :-)

Please use plain text.