Los sitios de asistencia de LogMeIn ya no son compatibles con el navegador Internet Explorer (IE) de Microsoft. Utilice un navegador compatible (Chrome/FireFox/Edge) para asegurarse de que el funcionamiento de todas las características es el esperado.

El sitio de asistencia de GoTo ya no es compatible con Safari 15. Actualice el navegador a Safari 16 (o una versión más reciente) o cambie a un navegador compatible, como Google Chrome, Mozilla Firefox o Microsoft Edge.

¿Quiere añadir puestos a su suscripción de Rescue o probar Asistencia para dispositivos móviles o Cámara compartida? Solicitar un presupuesto.

We are currently experiencing an unplanned outage for this product. Ver el estado de servicio
  • Support
  • Ver los productos

    Explorar asistencia por producto

    GoTo Connect

    Software de reuniones, mensajería y teléfono todo en uno

    GoTo Meeting

    Software de reuniones de audio y vídeo

    GoTo Webinar

    Software de eventos virtuales y seminarios web todo en uno

    GoTo Room

    Hardware de sala de conferencias

    GoTo Training

    Software de formación en línea

    OpenVoice

    Software de conferencias de audio

    Grasshopper

    Sistema de telefonía virtual ligera

    join.me

    Software de videoconferencias

    Resolve

    Asistencia y gestión de TI

    Resolve MDM

    Gestión de dispositivos móviles

    Pro

    Acceso remoto a dispositivos

    Central

    Supervisión y gestión remotas

    Rescue

    Asistencia de TI remota

    GoToMyPC

    Acceso a escritorio remoto

    GoToAssist

    Software de asistencia remota

    Hamachi

    Servicio de VPN alojado

    RemotelyAnywhere

    Solución de acceso remoto en sus instalaciones
  • Comunidad
  • Formación
  • Estado del servicio
  • LogMeIn regresa como la marca de los productos para TI de GoTo

    LogMeIn vuelve a la palestra como el nombre que engloba nuestros productos para TI.

    Lea el anuncio completo.
    Want to try a download free option?

    Try the new web console experience!

    Rescue WebTC
  • Language selector icon Language selector icon
    • English
    • français
    • italiano
    • Deutsch
    • español
    • português
    • Nederlands
  • Contactar con el equipo de asistencia
  • Estado del servicio
  • User Avatar User Avatar
    • Support
    • Contactar con el equipo de asistencia
    • Browse Products
    • Estado del servicio
    • Comunidad
    • Formación
    • Iniciar sesión
    • User Avatar
    • Mi cuenta
    • Información personal
    • Inicio de sesión y seguridad
    • Centro de administración
    • https://link.goto.com/myaccount-billing
    • Mi GoTo Connect
    • Mis reuniones
    • Mis seminarios web
    • Mis cursos
    • Mis conferencias
    • Mis resoluciones
    • My Mobile Devices
    • Mis sesiones
    • Mis sesiones
    • Mis incidencias
    • Sign out
  • Personalización e integración
  • Contenido de desarrollador
  • Opciones de personalización para desarrolladores
product logo
Back button image Regresa
Back button image
product logo
Sample code for self-hosted Instant Chat

Sample code for self-hosted Instant Chat

Articles related to customization are written for a technical audience who have experience in web development. Knowledge of HTML, CSS, and JavaScript are required.

El siguiente es un código de muestra para Instant Chat autohospedado.

<!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> <title>YourCompany - Web Chat</title> <script type="text/javascript" src="https://secure.GoToLogMeIn Rescue.com/InstantChat/InstantChat.aspx"></script> <script type="text/javascript"> function loadInstantChat(sessionType) { // Show Instant Chat document.getElementById("InstantChatDiv").style.display = ""; // Hide Channel form document.getElementById("ChannelForm").style.display = "none"; // Hide PIN Code form document.getElementById("PinForm").style.display = "none"; // Hide Language dropdown document.getElementById("LanguageForm").style.display = "none"; var ICLoader = new LogMeIn RescueInstantChatLoader(); ICLoader.ICContainer = "InstantChatDiv"; ICLoader.HostedCSS = "http://YourSite/yourstylesheet.css"; ICLoader.HostedLanguagesForChatOnlyMode = "http://[YourSite]/LanguagesForChatOnlyMode.js"; ICLoader.HostedLanguagesForAppletMode = "http://[YourSite]/LanguagesForAppletMode.js"; // El URL o nombre de dominio de [SuSitio] debe estar en la lista de permitidos del centro de administración LogMeIn Rescue. ¡// Póngase en contacto con su LogMeIn Rescue Maestro Administrator! // sessionType == 0, we are after REBOOT // Channel session if (sessionType == 1) ICLoader.EntryID = "123456789"; // Private Session if (sessionType == 2) { var pin = document.getElementById("inputPinCode").value; if ((pin.length != 6) || isNaN(pin)) { handleError("Private code should be a 6-digit number!"); return; } else ICLoader.PrivateCode = document.getElementById("inputPinCode").value; } ICLoader.Name = document.getElementById("inputYourName").value; ICLoader.Comment1 = document.getElementById("inputEmailAddress").value; ICLoader.Comment2 = document.getElementById("inputPhoneNumber").value; ICLoader.Comment3 = document.getElementById("inputCompanyName").value; ICLoader.Comment4 = document.getElementById("inputLocation").value; ICLoader.Comment5 = document.getElementById("inputComment").value; ICLoader.Tracking0 = "TestForm01"; ICLoader.Language = document.getElementById("inputLanguageSelect").value; ICLoader.PostMessageTargetOrigin = null; //https://[YourSite].com<:443> // Error + No Technician available notification handling ICLoader.HostedErrorHandler = function(ErrorName) { switch(ErrorName) { case "NOTECHAVAILABLE": handleError("Currently no technicians are available. Por favor, vuelva a comprobarlo más tarde."); break; case "NOTECHWORKING": handleError("Lo sentimos, hemos cerrado. No hay técnicos disponibles en este momento. Por favor, vuelva a comprobarlo más tarde durante nuestro horario de atención."); break; case "INVALID_PARAMETERS": handleError("Parámetros no válidos suministrados. Póngase en contacto con su proveedor de asistencia."); break; case "SESSIONALREADYSTARTED": handleError("Ya se ha iniciado una sesión con este código PIN. Solicite un nuevo código PIN a su proveedor de asistencia."); break; case "UCONNECTIONERROR": handleError("Se ha producido un error de conexión desconocido."); break; case "ERRNOSUCHSSESSION": handleError("No se puede iniciar la sesión de asistencia."); break; case "ERRNOSUCHENTRY": handleError("No se puede iniciar la sesión de asistencia en línea. Póngase en contacto directamente con su proveedor de asistencia."); break; case "ERRCODEDOESNOTEXIST": handleError("El código PIN no existe. Póngase en contacto con su proveedor de asistencia."); break; case "ERRCODEEXPIRED": handleError("El código PIN ha caducado. Póngase en contacto con su proveedor de asistencia."); break; case "ERRNOTEXPIRED": handleError("El técnico o la empresa no existen. Póngase en contacto con su proveedor de asistencia."); break; case "ERRMISSINGTECHLICENSE": handleError("No se puede iniciar la sesión de asistencia. El técnico no está configurado para admitir este tipo de dispositivo."); break; } } ICLoader.Start(); } // Start automatically Instant Chat after REBOOT function handleReboot() { if ((window.location + "").indexOf("LogMeIn Rescuewebsessionid") != -1) loadInstantChat(0); if (window.location.hash.length == webSessionIdLength + 1) loadInstantChat(0); } // Show error messages function handleError(ErrorDescription) { // Hide Instant Chat document.getElementById("InstantChatDiv").style.display = "none"; // Show ErrorForm var ef = document.getElementById("ErrorForm"); ef.style.display = ""; ef.innerHTML = ErrorDescription; } </script> </head> <body onload="handleReboot();" style="background-color: #000000; font-family:tahoma, arial, verdana; color: #FFFFFF"> <noscript> <div style="position: absolute; left: 0px; top: 0px; width: 700px; height: 700px; zindex: 1; background-color: #000000"> Para utilizar la Instant Chat función, asegúrese de tener JavaScript activado en su navegador web.<br /> Una vez que haya activado JavaScript la función, actualice esta página. </div> </noscript> <div id="ChannelForm" style="position: absolute; left: 100px; top: 100px; backgroundcolor: #303030; padding: 20px 20px 20px 20px"> Your Name<br /> <input id="inputYourName" type="text" maxlength="64" style="width: 200px" /><br /> Email Address<br /> <input id="inputEmailAddress" type="text" maxlength="512" style="width: 200px" /><br /> Phone Number<br /> <input id="inputPhoneNumber" type="text" maxlength="512" style="width: 200px" /><br /> Company Name<br /> <input id="inputCompanyName" type="text" maxlength="256" style="width: 200px" /><br /> Location<br /> <input id="inputLocation" type="text" maxlength="64" style="width: 200px" /><br /> Comment<br /> <input id="inputComment" type="text" maxlength="64" style="width: 200px" /><br /><br /> <input type="button" value="Start Chat Now" onclick="loadInstantChat(1);" /> </div> <div id="PinForm" style="position: absolute; left: 400px; top: 100px; background-color: #303030; padding: 20px 20px 20px 20px"> Enter your 6 digit PIN code<br /> <input id="inputPinCode" type="text" maxlength="64" style="width: 200px" /><br /><br /> <input type="button" value="Connect to technician" onclick="loadInstantChat(2);" /> </div> <div id="LanguageForm" style="position: absolute; left: 400px; top: 260px; backgroundcolor: #303030; padding: 20px 20px 20px 20px"> Select Chat<br />interface language<br /> <select id="inputLanguageSelect" style="width: 200px"> <option value="en">English</option> <option value="es">Español</option> <option value="de">Deutsch</option> <option value="fr">Français</option> <option value="it">Italiano</option> <option value="nl">Nederlands</option> <option value="pt">Português</option> <option value="pt-br">Português (Br)</option> <option value="hu">Magyar</option> <option value="ru">Russian</option> <option value="ja">Japanese</option> <option value="ko">Korean</option> <option value="zh">Simplified Chinese</option> <option value="zh-tw">Traditional Chinese</option> <option value="ar">Arabic </option <option value="tr">Türk</option> <option value="pl">Polski</option> <option value="fi">Suomalainen</option> <option value="sv">Svensk</option> <option value="no">Norsk</option> <option value="he">Hebrew</option> <option value="da">Dansk</option> <option value="cs">Czech</option> </select> </div> <div id="ErrorForm" style="position: absolute; left: 100px; top: 100px; height: 200px; width: 300px; background-color: #303030; padding: 20px 20px 20px 20px; display: none"></div> <div id="InstantChatDiv" style="position: absolute; left: 100px; top: 100px; width: 285px; height: 259px; display: none"></div> </body> </html>
Note:
  • Instant Chat utiliza siempre el tipo de documento XHTML 1.0 Transitional, aunque también son compatibles los tipos de documentos HTML anteriores.
  • La siguiente línea debería indicar siempre InstantChat.aspx:
    <script type="text/javascript" src="https://secure.GoToLogMeIn Rescue.com/InstantChat/InstantChat.aspx"></script>
  • ICContainer es un parámetro obligatorio, el iframe de Instant Chat se cargará en el elemento ICContainer
    ICLoader.ICContainer = "ICContainer";
  • Para obtener más información sobre la personalización de InstantChat.css, consulte Customize InstantChat.css.
  • Puede definir un parámetro PrivateCode en lugar del parámetro EntryID para iniciar sesiones privadas en
    ICLoader.EntryID = "1234567890";
  • Puede definir el código del idioma predeterminado (“en” es el predeterminado). Consulte también Customize Instant Chat language files.

    Los siguientes idiomas los proporciona GoTo:

    Abreviatura (valor) Idioma Abreviatura (valor) Idioma
    es Inglés zh Chino simplificado
    es Español zh-tw Chino tradicional
    de Alemán ar Árabe
    fr Francés tr Turco
    it Italiano pl Polaco
    nl Holandés fi Finlandés
    pt Português sv Sueco
    pt-br Português (Br) no Noruego
    hu Húngaro he Hebreo
    ru Ruso da Danés
    ja Japonés cs Checo
    ko Coreano el Griego
    th Tailandés ro Rumano
    bg Búlgaro sk Eslovaco
    hr Croata    
  • El gestión de errores hospedado trabaja de la siguiente forma:
    • Quitar la auricular función si su ICContainer siempre es visible en su página:
      function handleReboot(){...}
    • Mostrar automáticamente Instant Chat luego de reiniciar. Quitar esta línea si su ICContainer siempre es visible en su página:
      if ((window.location + "").indexOf("LogMeIn Rescuewebsessionid") != - 1){document.getElementById("ICContainer").style.display="" ; loadInstantChat();} /* opcional */
Article last updated: 11 July, 2023
You are viewing the latest version of this article.

¿Necesita ayuda?

Contact icon Contactar con el equipo de asistencia
Community icon Preguntar a la comunidad
Training icon Attend trainings
Video icon Asistir a sesiones de formación
  • Language selector icon Language selector icon
    • English
    • français
    • italiano
    • Deutsch
    • español
    • português
    • Nederlands
  • Acerca nosotros
  • Términos de servicio
  • Política de privacidad
  • Marcas comerciales
  • No vender ni compartir mi información personal
  • Ver los productos
  • Copyright © 2025 GoTo Group, Inc. All rights reserved

Comunicación y colaboración

GoTo Connect

GoTo Meeting

GoTo Webinar

GoTo Training

join.me

Grasshopper

OpenVoice

Interacción y asistencia

GoTo Resolve

Rescue

GoToAssist

Identidad y acceso

Pro

Central

GoToMyPC