Was this article helpful?

Chat Plugin

Last modified 11:19, 20 Jan 2014

See it in Action

 

 

Check Out the Code

<html>
<head> 
	<SCRIPT type="text/javascript" lang="javascript" 
        src="http://cdn.gigya.com/JS/socialize.js?apikey=2_Y82PzwJ_chSFImHXaIDJClnLyJzmk-VFOavSsaNTzl6m901s_NNxRAS0xJ3bd3_N">
    </SCRIPT>
</head>
<body>
    <div id="divChat"></div>
    <script type="text/javascript">
		var params =
        {
            containerID: "divChat", // The component will embed itself inside the divConnect Div 
			categoryID:12144159,  // Identifier taken from the chat setup on gigya.com
			width:300,
			height:450,
			cid: ''
        };
        // show 'Chat' Plugin in "divChat"
        gigya.chat.showChatUI(params);
    </script>    
</body>
</html>

Note:
In order to make this code work in your environment, please:
  • Click the "view source" icon (link located above code on the right hand side) - This will open a popup window with a text version of the code, which you may copy.
  • The API key in the sample will only work on http://localhost/...
  • To load the page from your domain, modify the value of the "APIKey" field in the code to your own Gigya API Key. A Gigya API Key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API Key.

Was this article helpful?
Pages that link here
Page statistics
3454 view(s) and 3 edit(s)
Social share
Share this page?

Tags

This page has no custom tags set.

Comments

You must to post a comment.

Attachments