function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
santoshsantosh 

CTI from s-control

Hello,
 
I 've installed the CTI demo adapter, and I am able to make calls from a custom link linked to an executejavascript calling the sendctimessage(<params>) function.
 
What I am unable to do however is to get this function to work from an s-control instead of the executejs.
What is different when the js is written in executejs and the s-control?
 
Thanks in advance, Much appreciated.
 
-Santosh
werewolfwerewolf
The S-control is served up in an Iframe within the document which is probably in a separate domain.  The CTI is in the parent document in the Salesforce.com domain.  If you want to be able to make cti calls from your Scontrol, at the very least you'll have to reference the parent document, but if they are in fact in different domains then you just won't be able to do it.
santoshsantosh
Thanks very much, this worked!