Class WebLiveChatListener
Defined in: sdk.js.
Constructor Attributes | Constructor Name and Description |
---|---|
The WebLiveChatListener provides an integration between a LiveChatConnection and an HTML document.
|
Field Attributes | Field Name and Description |
---|---|
Configure the chat to auto accept a bot after waiting
|
|
Allow the chat box background color to be set.
|
|
Set if the back link should be displayed.
|
|
Variables used to get the user and bot images.
|
|
Set the location of the button and box, one of "bottom-right", "bottom-left", "top-right", "top-left".
|
|
Print response in chat bubble.
|
|
Set the caption for the button bar button.
|
|
Set if the box chat log should be shown.
|
|
Configure message log format (table or log).
|
|
Box chat chat room option.
|
|
Allow the chat box button color to be set.
|
|
Provide an email chat log menu item.
|
|
Configure if chat should be given focus after message.
|
|
Set styles explicitly to avoid inheriting page styles.
|
|
Chat box height.
|
|
Allow the chat box hover button color to be set.
|
|
Link to online user list users to their profile page.
|
|
Box chat loading message to display.
|
|
Chat box offset from side.
|
|
Box chat show online users option.
|
|
Override the URL used in the chat box popup.
|
|
Element id and class prefix.
|
|
Prompt for name/email before connecting.
|
|
Ask the user if they want an email of the chat log on close.
|
|
Show Box Max
|
|
Allow the close button on the box button bar to be removed, and maximize on any click to the button bar.
|
|
Show and hides menu bar
|
|
Show Send Image
|
|
JSON object of all currently logged in users in the chat room take from updateUsersXML.
|
|
Allow the user to modify style sheets.
|
|
Chat Button Vertial Offset
|
|
Chat box width.
|
Method Attributes | Method Name and Description |
---|---|
accept()
|
|
boot()
|
|
clear()
|
|
closeBox()
Close the embedding div in the current webpage.
|
|
closed()
Notification that the connection was closed.
|
|
Check contact info and connect.
|
|
Create an embedding bar and div in the current web page.
|
|
error(message)
An error message was received from the channel.
|
|
exit()
|
|
expandVideo(user)
Increase the size of the video element for the userid.
|
|
flag(user)
|
|
info(message)
An informational message was received from the channel.
|
|
linkChatPostbacks(node)
Search for link using .
|
|
Maximize the embedding div in the current webpage.
|
|
message(message)
A user message was received from the channel.
|
|
Minimize the live chat embedding box.
|
|
Minimize the contact info box.
|
|
Minimize the email chat log confirm dialog.
|
|
muteAudio(user)
Mute the audio for the userid.
|
|
muteVideo(user)
Mute the video for the userid.
|
|
ping()
|
|
popup()
Create a popup window live chat session.
|
|
pvt(user)
|
|
Minimize the email chat log confirm dialog.
|
|
shrinkVideo(user)
Decrease the size of the video element for the userid.
|
|
spyMode()
|
|
updateUsers(usersCSV)
The channels users changed (user joined, left, etc.
|
|
updateUsersXML(usersXML)
The channels users changed (user joined, left, etc.
|
|
whisper(user)
|
Class Detail
WebLiveChatListener()
The WebLiveChatListener provides an integration between a LiveChatConnection and an HTML document.
It updates the document to message received from the connection, and sends messages from the document's form.
The HTML document requires the following elements:
- chat - chat text input for sending messages
- send - button for sending chat input
- response - table for chat log, and user log
- scroller -
paragraph for last chat message - console -