- Joined
- Jun 1, 2011
- Messages
- 6
- Reaction score
- 0
Hi,
I have been trying to work on a little JScript query to enable a phone number in the header of a CRM Entity Form to Click to Call (opening call in the 3CX MyPhone). I have very limited programming experience, can anyone help with my code below? Or is this not really possible?
function calltcx() {
var phoneField = "header_mag_homephone_d";
document.getElementById(phoneField).childNodes[0].style.textDecoration = "underline";
document.getElementById(phoneField).childNodes[0].style.color = "blue";
document.getElementById(phoneField).childNodes[0].ondblclick = function ()
{
var oShell = WScript.CreateObject("WScript.Shell");
oShell.Run(C:\ProgramData\3CXMyPhone Client Addin\CallNotifier.exe -cmd makecall: phoneField, 1);
};
}
Thanks!
I have been trying to work on a little JScript query to enable a phone number in the header of a CRM Entity Form to Click to Call (opening call in the 3CX MyPhone). I have very limited programming experience, can anyone help with my code below? Or is this not really possible?
function calltcx() {
var phoneField = "header_mag_homephone_d";
document.getElementById(phoneField).childNodes[0].style.textDecoration = "underline";
document.getElementById(phoneField).childNodes[0].style.color = "blue";
document.getElementById(phoneField).childNodes[0].ondblclick = function ()
{
var oShell = WScript.CreateObject("WScript.Shell");
oShell.Run(C:\ProgramData\3CXMyPhone Client Addin\CallNotifier.exe -cmd makecall: phoneField, 1);
};
}
Thanks!