PDA

View Full Version : problem to dial phone call on button click



manish khamar
6 Sep 2011, 5:18 AM
hi

I have problem with dial phone call

It show me alert that safari can not open the page because the address is invalid.

<code>

var tapHandler = function(button, event){
Ext.Msg.confirm('External Link', 'Call ' + button.contactName + "?", function(res){
if (res == 'yes') {
alert(button.callUrl);
window.location = button.callUrl;
}
}, this);


};
var callButton = new Ext.Button({
text: 'Call Now',
callUrl: 'tel:1-408-555-5555',
contactName: 'Ben M',
handler: tapHandler
});

</code>

pls help me i try lots but it not working