PDA

View Full Version : phone number reocnition



lakilevi
2 Nov 2011, 5:12 AM
Hi!

I updated a panel by an Ajax call, to display a simple html table in the body of the panel.
I have the following code:


Ext.Ajax.request({
url: this.url,
success: function(rs){
this.update(rs.responseText);
},
scope: this
});

It is working very well, but I have some phone numbers and email addresses in this text. And I want to be able to direct call these phone numbers. Right now I cannot even copy-paste those phone numbers, so my users have to note into external support the phone numbers if they want to call them.
Is there a way to recognise the phone numbers and call them directly with one tap?

Thank you very much!

mitchellsimoens
2 Nov 2011, 7:03 AM
put them in a link and the href to the appropriate way.. for phone numbers, href='tel:18001111111'