05-02-2013 08:05 AM
The Web Client needs to open a new explorer tab and do something like this:
<a href="callto://+49 3727 9999/">+49 3727 9999</a>
The phone number should be taken from the MainPhone.
Anyone ever tried this?
05-02-2013 08:25 AM
Several ways to do it:
w.document.body.innerHTML = "<a href='callto://" + phone + "/'>" + phone + "</a>";
05-02-2013 08:49 AM
05-02-2013 09:08 AM
phone is a variable I have used. You have to populate it.
For instance, if you have the Phone in a Text box with an ID of "txtPhone", you could do something like:
var phone = document.getElementById('txtPhone').value;
alert(phone); //Should be populated
Or, using JQuery:
var phone = $('#txtPhone').text();
PAGE_ONLOAD EVENT (Server side)
IAccount acct = BindingSource.Current as IAccount;
string jstr = "var phone = '" + acct.MainPhone + "';";
RegisterClientScript jstr // This isn't the syntax, just an example of how/what to do server side to set the phone into a variable.
05-03-2013 03:26 AM
It's not working. No idea why.
I've tried this:
var phone1 = document.getElementById('MainPhone').value;
var phone1 = $('#MainPhone').text();
Where do I go wrong?
05-03-2013 01:02 PM