Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vendors:cisco:uc:ece:js [2021/05/25 10:07] gerardorourkevendors:cisco:uc:ece:js [2021/05/25 10:09] (current) gerardorourke
Line 4: Line 4:
 /* Create a new instance of the eGainLibrarySettings Object */ /* Create a new instance of the eGainLibrarySettings Object */
 var librarySettings = new eGainLibrarySettings(); var librarySettings = new eGainLibrarySettings();
-librarySettings.CORSHost =http://myegainserver.com/system;+librarySettings.CORSHost ="http://myegainserver.com/system";
 librarySettings.IsDevelopmentModeOn = false; librarySettings.IsDevelopmentModeOn = false;
 ibrarySettings.eGainContextPath = ""; ibrarySettings.eGainContextPath = "";
Line 22: Line 22:
  alert('Chat Started!');  alert('Chat Started!');
  };  };
-  + /* Example browser alert when there is a connection failure */ 
-/* Example browser alert when there is a connection failure */ + myEventHandlers.OnConnectionFailure = function () { 
-myEventHandlers.OnConnectionFailure = function () { + alert('Oops! Something went wrong'); 
-alert('Oops! Something went wrong'); + };
-}; +
 /* Example browser alert when there is an error during chat */ /* Example browser alert when there is an error during chat */
  myEventHandlers.OnErrorOccurred = function () {  myEventHandlers.OnErrorOccurred = function () {
Line 33: Line 31:
  };  };
  
-/* Example output of agent messages to a DIV named TransScript with jQuery */ + /* Example output of agent messages to a DIV named TransScript with 
-myEventHandlers.OnAgentMessageReceived = function(agentMessageReceivedEventArgs) { +jQuery */ 
-$('#TransScript').append("<br />Agent: " + agentMessageReceivedEventArgs.Message); + myEventHandlers.OnAgentMessageReceived = function 
-};+(agentMessageReceivedEventArgs) { 
 + $('#TransScript').append("<br />Agent: " + 
 +agentMessageReceivedEventArgs.Message); 
 + };
  
-/* Example output of system messages to the same DIV */ + /* Example output of system messages to the same DIV */ 
-myEventHandlers.OnSystemMessageReceived = function(systemMessageReceivedEventArgs) { + myEventHandlers.OnSystemMessageReceived = function 
-$('#TransScript').append("<br />" + systemMessageReceivedEventArgs.Message); +(systemMessageReceivedEventArgs) { 
-};+ $('#TransScript').append("<br />" + 
 +systemMessageReceivedEventArgs.Message); 
 + };
  
-/* Example browser alert when agents are not available */ + /* Example browser alert when agents are not available */ 
-myEventHandlers.OnAgentsNotAvailable = function(agentsNotAvailableEventArgs) { + myEventHandlers.OnAgentsNotAvailable = function 
-alert('Sorry no agents available'); +(agentsNotAvailableEventArgs) { 
-};+ alert('Sorry no agents available'); 
 + };
  
-/* Example browser alert when the chat is completed */ + /* Example browser alert when the chat is completed */ 
-myEventHandlers.OnConnectionComplete = function () { + myEventHandlers.OnConnectionComplete = function () { 
-$.mobile.changePage("#SimpleAnonymousChatPostChatScreen"+ $.mobile.changePage("#SimpleAnonymousChatPostChatScreen"
-};+ };
  
 /* Now call the Chat initialization method with your entry point and callbacks */ /* Now call the Chat initialization method with your entry point and callbacks */
  • vendors/cisco/uc/ece/js.1621933671.txt.gz
  • Last modified: 2021/05/25 10:07
  • by gerardorourke