Hello,
Everything is on the object of this post. Want to launch Instant chat directly in french.
I'm not familliary with Javascript. I read the documentations try it in many way... But fail !
Note that i use "LanguagesForAppletMode.js" ? different than the one of the documentation sample...
Here is the example code in the documentations:
Change the language
File to edit: LanguagesForChatOnlyMode.js
var ic_hic_demo_timer = null;
ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
if ((ICObject != null) && (ICObject.pMainContentArea != null))
{
clearInterval(ic_hic_demo_timer);
ICObject.LangDivEn = document.createElement("div");
ICObject.LangDivEn.className = "demoButton1";
ICObject.LangDivEn.onclick = function () { ICObject.changeLanguage(0); }
ICObject.LangDivEn.innerHTML = "English";
ICObject.pMainContentArea.appendChild(ICObject.LangDivEn);
ICObject.LangDivRu = document.createElement("div");
ICObject.LangDivRu.className = "demoButton2";
ICObject.LangDivRu.onclick = function () { ICObject.changeLanguage(9); }
ICObject.LangDivRu.innerHTML = "Pусско";
ICObject.pMainContentArea.appendChild(ICObject.LangDivRu);
ICObject.LangDivDa = document.createElement("div");
ICObject.LangDivDa.className = "demoButton3";
ICObject.LangDivDa.onclick = function () { ICObject.changeLanguage(21); }
ICObject.LangDivDa.innerHTML = "Dansk";
ICObject.pMainContentArea.appendChild(ICObject.LangDivDa);
}
}
Here is the html code i'll past on my web site to have instant chat:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="https://secure.logmeinrescue.com/InstantChat/InstantChat.aspx" defer="defer"></script>
<script type="text/javascript">
function loadInstantChat(){
var ICLoader = new RescueInstantChatLoader();
ICLoader.ICContainer = "ICContainer";
ICLoader.HostedCSS = "https://secure.logmeinrescue.com/InstantChat/Standard/InstantChat.css";
ICLoader.HostedLanguagesForChatOnlyMode = "https://secure.logmeinrescue.com/InstantChat/LanguagesForChatOnlyMode.js";
ICLoader.HostedLanguagesForAppletMode = "https://secure.logmeinrescue.com/InstantChat/LanguagesForAppletMode.js";
ICLoader.EntryID = "1277887014";
ICLoader.Name = document.getElementById("Name").value; /* optional */
ICLoader.Comment1 = document.getElementById("Comment1").value; /* optional */
ICLoader.Comment2 = document.getElementById("Comment2").value; /* optional */
ICLoader.Comment3 = document.getElementById("Comment3").value; /* optional */
ICLoader.Comment4 = document.getElementById("Comment4").value; /* optional */
ICLoader.Comment5 = document.getElementById("Comment5").value; /* optional */
ICLoader.Tracking0 = ""; /* optional */
ICLoader.Language = "fr–Français"; /* optional */
ICLoader.HostedErrorHandler = function(ErrorName){} /* optional */
ICLoader.Start();}
function handleRebootOrRefresh(){
if ((window.location + "").indexOf("rescuewebsessionid") != -1){document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
if (window.location.hash.length == webSessionIdLength + 1){document.getElementById("ICContainer").style.display=""; loadInstantChat();} /* optional */
}
</script>
</head>
<body onload="handleRebootOrRefresh();">
<table>
<tr><td>Entreprise : </td><td><input id="Name" type="text" maxlength="64" /></td></tr>
<tr><td>Nom : </td><td><input id="Comment1" type="text" maxlength="512" /></td></tr>
<tr><td>Prénom : </td><td><input id="Comment2" type="text" maxlength="512" /></td></tr>
<tr><td>Tel: : </td><td><input id="Comment3" type="text" maxlength="256" /></td></tr>
<tr><td>E-Mail : </td><td><input id="Comment4" type="text" maxlength="64" /></td></tr>
<tr><td>MDP : </td><td><input id="Comment5" type="text" maxlength="64" /></td></tr>
</table>
<input type="button" value="Se connecter au Technicien" onclick="document.getElementById('ICContainer').style.display=''; loadInstantChat();" />
<div id="ICContainer" style="position: absolute; left: 0px; top: 0px; width: 400px; height: 500px; display: none"></div>
</body>
</html>
Please, if somebody can help me...................