Open CTI Developer's Guide - Salesforce.com
Open CTI Developer's Guide - Salesforce.com
Open CTI Developer's Guide - Salesforce.com
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Methods for Computer-Telephony Integration (<strong>CTI</strong>)enableClickToDial()var callback = function (response) {if (response.result) {alert('Click to dial was disabled.');} else {alert('Click to dial was not disabled.');}};function disableClickToDial() {//Invokes API methodsforce.interaction.cti.disableClickToDial(callback);}disable click to dialResponseThis method is asynchronous so it returns its response in an object in a callback method. The response object contains thefollowing fields:NameresulterrorTypebooleanstringDescriptiontrue if click-to-dial was disabled, false if click-to-dial wasn’t disabled.If the API call was successful, this variable is undefined. If the API call failed,this variable returns an error message.enableClickToDial()UsageEnables click-to-dial.Syntaxsforce.interaction.cti.enableClickToDial( (optional) callback:function )ArgumentsNamecallbackTypefunctionDescriptionJavaScript method called upon <strong>com</strong>pletion of the method.Sample Code–JavaScriptvar callback = function (response) {if (response.result) {alert('Click to dial was enabled.');34