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
Bethann GonzalezBethann Gonzalez 

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!