Namespaces
Variants
Actions

How to make a Phone Call with WRT

Jump to: navigation, search
Article Metadata

Article
Created: jzferreira (06 Jul 2009)
Last edited: hamishwillee (26 Jul 2012)

With WRT you can get all contacts and send a SMS, but is it possible to make phone call instead of send a message? Yes, it's possible. You just need to use the tel protocol.

HTML Example

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Phone Call</title>
<script type="text/javascript" language="javascript" src="phonecall.js">
<script type="text/javascript" language="javascript">
 
window.onload = function() {
 
call();
 
}
 
</script>
 
</head>
<body>
<ul>
<li id='telephone'>+559255555555</li>
</ul>
</body>
</html>

Javascript Code (phonecall.js)

function call() {
 
var doc = document;
var div = doc.getElementById('telephone');
var value= div.innerHTML;
 
widget.openURL("tel:"+value);
 
}

Suggestion

If you want improve this example, you can get all contact from your device, shows in the page and add click event to do the phone call.

This page was last modified on 26 July 2012, at 05:59.
102 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved