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
Alexander RochaAlexander Rocha 

Customize Deployments isn't running

Hi guys,

I have a problem here =/
I develop this simple page to start a Live Agent chat, but these functions isn't running:

liveagent.enableLogging();
liveagent.setChatWindowHeight(800);
liveagent.setChatWindowWidht(600);

Here is the complete code:

<script type="text/javascript">
    if (!window._laq){ window._laq = []; }
    window._laq.push(function(){
        liveagent.showWhenOnline('573190000008OLY', document.getElementById('Online'));
        liveagent.showWhenOffline('573190000008OLY', document.getElementById('Offline'));
    });
</script>
<input type='button' name='liveagent' onclick='test()' id='Online' value='Iniciar Chat'>
<span id='Offline'>Support Offline </span>
<script type='text/javascript' src='https://c.la3-c2cs-chi.salesforceliveagent.com/content/g/js/32.0/deployment.js'></script>
<script type='text/javascript'>
    liveagent.init('https://d.la3-c2cs-chi.salesforceliveagent.com/chat', '572190000008OK1', '00D19000000DMeE');
    
    function test(){
        
        liveagent.startChat("573190000008OLY");
        liveagent.enableLogging();
    
        liveagent.setChatWindowHeight(800);
        liveagent.setChatWindowWidht(600);
        
    }
    
</script>

Sorry my bad english, but what could be done?
Best Answer chosen by Alexander Rocha
Deepak Kumar ShyoranDeepak Kumar Shyoran
You can visit http://www.infallibletechie.com/2013/06/live-agent-implementation-in-salesforce.html link here they mentioned step by step process with code to use live chat features of Salesforce.

All Answers

Deepak Kumar ShyoranDeepak Kumar Shyoran
You can visit http://www.infallibletechie.com/2013/06/live-agent-implementation-in-salesforce.html link here they mentioned step by step process with code to use live chat features of Salesforce.
This was selected as the best answer
Alexander RochaAlexander Rocha
Thank you!