This project is read-only.

SharePoint Chat is a jQuery plugin for SharePoint 2007 that places a chat application onto a SharePoint web part page. The plugin uses jquery to add messages to a list and display them in real-time on a list-view web part. It’s simple to install and customize.

To setup, start by adding references to jQuery, ‘livelistdata’ (a very nice plugin that refreshes web parts), and the SharePoint chat plugin:
You can download the livelistdata plugin here: http://livelistdata.codeplex.com/.
<script src="/path/jQuery%20Libraries/jquery.min.js" type="text/javascript"></script>
<script src="/path/jquery.sharepoint.livelistdata.js" type="text/javascript"></script>
<script src="/path/jquery.sharepoint.chat.js" type="text/javascript"></script>

Then create a custom list with a single (multi-line) column entitled “Message”. Then get the GUID of the list you’ve created.

Then add the following code to a CEWP (Content Editor Web Part) of the page on which you want the chat window displayed.. It’s best to place this web part directly above the list-view web part that displays the chat entries. Edit the source and enter the following code:
<script type='text/javascript'>
   $(document).ready(function() {
      $.chat({listguid:"{EAD2CD7E-C4F0-4F9C-8281-D6A9569186FB}"});
   });
</script>
<h3>Chat Box</h3>
<div id='jQueryChatBox'></div>


Then, save your page, and start chatting!

Advanced Options
Parameters that can be set include:

Parameter Description Default
listguid (required) The list GUID that will contain the chat messages (none)
divid The id of the div that will contain the text box for chatting jQueryChatBox
savecaption The caption of the button that will send the text to the list Send
clearcaption The caption of the button that will clear the text box of any text Clear
messagecolumn The name of the column in the list that will contain the chat messages Message

 Example for advanced usage:
<script type='text/javascript'>
   $(document).ready(function() {
      $.chat(
         {
            listguid: "{EAD2CD7E-C4F0-4F9C-8281-D6A9569186FB}",
            savecaption: "Send Chat Message",
            clearcaption: "Clear Text"
         }
      );
   });
</script>

Last edited Apr 5, 2011 at 8:56 PM by crackelacken, version 5

Comments

atulkale Sep 7, 2016 at 9:49 AM 
Does this work for SharePoint 2013 and SharePoint 2016?

kojo86 May 21, 2013 at 8:01 PM 
will it work for sharepoint 2013??

kojo86 May 21, 2013 at 8:00 PM 
need help implementing chat...how to get chat control to show on page

anoosha Feb 22, 2013 at 2:35 PM 
I am using this in sharepoint 2010. But I am not able to get chat control in the page.
I want to know whether it wont support for sharepoint 2010

anisou Dec 12, 2012 at 9:00 PM 
Hi there, what type of custom list we need to create?

pashuji Sep 15, 2011 at 3:02 PM 
Can we use it on SharePoint Server 10.
Please Explain Steps.

dbe4876 Sep 9, 2011 at 9:26 PM 
You said "To setup, start by adding references to jQuery, ‘livelistdata’ (a very nice plugin that refreshes web parts), and the SharePoint chat plugin" but I do not understand *where* I should add these references. Can you advise?