You need to sign in to do that
Don't have an account?
Alexander 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?
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?
All Answers