You need to sign in to do that
Don't have an account?
Live Agent-Chat Buttons and Automated Invites
I'm very new to Apex - or any code for that matter, and I am recieving the following error for two chat buttons that I have created:
line 1, column 8: line 1:8 no viable alternative at character '"'
Not sure how to fix the error? Please help!
See the code for the two buttons below:
<img id="liveagent_button_online_57380000000PAsI" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('57380000000PAsI')" src="https://pacificpowersource.secure.force.com/LiveChat/resource/1355859547000/Online_Sales_Button" /><img id="liveagent_button_offline_57380000000PAsI" style="display: none; border: 0px none; " src="https://pacificpowersource.secure.force.com/LiveChat/resource/1355859708000/Offline_Sales_Button" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('57380000000PAsI', document.getElementById('liveagent_button_online_57380000000PAsI'));
liveagent.showWhenOffline('57380000000PAsI', document.getElementById('liveagent_button_offline_57380000000PAsI'));
});</script>
<img id="liveagent_button_online_57380000000PAsN" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('57380000000PAsN')" src="https://pacificpowersource.secure.force.com/LiveChat/resource/1355860454000/Home_Page_Button" /><img id="liveagent_button_offline_57380000000PAsN" style="display: none; border: 0px none; " src="https://pacificpowersource.secure.force.com/LiveChat/resource/1355871562000/Offline_Home_Button" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('57380000000PAsN', document.getElementById('liveagent_button_online_57380000000PAsN'));
liveagent.showWhenOffline('57380000000PAsN', document.getElementById('liveagent_button_offline_57380000000PAsN'));
});</script>
Thank You!