Customer Sign In
Access your Activa Live Chat account. Sign In Here »
Activa Live Chat Features
888–4–CHAT–44
(888–424–2844)
Free Trial
Get full access to Activa Live Chat for 14-days with a trial sign up.
Customization Request
Use our professionals for custom implementations or design services.
Passing information from your Website to your Activa Live Chat operators when using a custom chat window
Activa Live Chat Support » Customization » How To
Article ID: 27 | Last Modified: 05/07/2008
Please read the following on how to deploy a custom chat window: http://www.activalive.com/support/Customization/how-to/26
1. Add your JavaScript __ALC_PRECHAT_INFO array that you created, onto your custom chat window page. To create the __ALC_PRECHAT_INFO array, please read: http://www.activalive.com/support/Customization/how-to/12
2. Add the following sample ActionScript code to your custom chat window:
<mx:Script>
<![CDATA[
var obj:Object = flash.external.ExternalInterface.call("function() { return __ALC_PRECHAT_INFO;}");
for each ( var info:Object in obj ) {
var field:String = null;
if ( info.field != null && info.field != '' ) {
field = flash.utils.escapeMultiByte(flash.external.ExternalInterface.call("function() { return decodeURIComponent('"+info.field+"');}"));
}
var label:String = flash.external.ExternalInterface.call("function() { return decodeURIComponent('"+info.label+"');}");
var value:String = flash.external.ExternalInterface.call("function() { return decodeURIComponent('"+info.value+"');}");
connection.assignPrechatInfo(field, label, value);
}
]]>
</mx:Script>
Launch Operator Console
Chat with us Now
Contact Us by E-mail