+ Start a Discussion

CTI Click-to-Dial on Visualforce Page gets "sforce.console.cti is null or not an object"

I'm having a problem with a Visualforce page that operates in the Service Cloud Console that has a phone field that needs to be made "Click-to-Dial". We have successfully done other visualforce pages with Click-to-Dial capability, but this particular page complains "sforce.console.cti is null or not an object". For those not familiar with how to add Click-to-Dial, you just need to add a javascript file named "/support/console/26.0/integration.js"  That scripts creates the sforce.console component. However, it appears the IncludeScript is not including the javascript "/support/console/26.0/integration.js" because the error says "sforce.console.cti is null or not an object".

Other people have similar post that say it is the order that the ajax and integration scripts are being declared (ajax must be first in IE8), but that hasn't fixed this problem.

The only other thing is that I thought might be happening is that this page is placed in the top window of the service console (replacing the standard Salesforce Highlight Panel). The other VF page that works is in the main frame. Could it be a visibility issue with that top position?

Any help would be greatly appreciated!

<apex:page controller="CtlrAccountHighlight" standardstylesheets="false">      
    <script src="/soap/ajax/11.1/connection.js"></script>
    <apex:includeScript value="/support/console/26.0/integration.js"/>
    <script type="text/javascript">
        function sendCTI(phone) {