Class Index | File Index

Classes


Namespace ct

ct
Defined in: ChatApp.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
ct
Creates the ct namespace for the chatapp widget
Field Summary
Field Attributes Field Name and Description
<static>  
ct.init
Instantiate the widgets in the DOM dynamically
<static>  
ct.int
Initial interval for how far back to retrieve messages
<static>  
ct.names
An array of possible names for the user.
<static>  
ct.scroll
Grab the init funciton chat widget
<static>  
ct.token
Store the token
<static>  
ct.user
Randomly choose a user name
<static>  
Call the usercheck function and add the returned users to the sidebar
Method Summary
Method Attributes Method Name and Description
<static>  
ct.get(a, data)
Get the current app name lends ct
<static>  
ct.read(a, data)
Initial grab of all the messages on load
<static>  
ct.ref(a, data)
Refresh the chat window at an interval
<static>  
ct.refresh()
<static>  
ct.send(a, data)
Send the server a message
<static>  
ct.userCheck(a, data)
Look for all the active users in the last 5 minutes to list in the sidebar
Namespace Detail
ct
Creates the ct namespace for the chatapp widget
Field Detail
<static> ct.init
Instantiate the widgets in the DOM dynamically

<static> ct.int
Initial interval for how far back to retrieve messages

<static> ct.names
An array of possible names for the user. Randomly generated.

<static> ct.scroll
Grab the init funciton chat widget

<static> ct.token
Store the token

<static> ct.user
Randomly choose a user name

<static> ct.userlist
Call the usercheck function and add the returned users to the sidebar
Method Detail
<static> {object} ct.get(a, data)
Get the current app name lends ct
Parameters:
{string} a
url representing a controller method server-side
{object} data
sent along with the ajax request
Returns:
{object} current app name

<static> {object} ct.read(a, data)
Initial grab of all the messages on load
Parameters:
{string} a
url representing a controller method server-side
{object} data
sent along with the ajax request
Returns:
{object} a list of all returned messages

<static> {object} ct.ref(a, data)
Refresh the chat window at an interval
Parameters:
{string} a
url representing a controller method server-side
{object} data
sent along with the ajax request
Returns:
{object} a list of all returned messages

<static> ct.refresh()

<static> {boolean} ct.send(a, data)
Send the server a message
Parameters:
{string} a
url representing a controller method server-side
{object} data
sent along with the ajax request
Returns:
{boolean} success

<static> {object} ct.userCheck(a, data)
Look for all the active users in the last 5 minutes to list in the sidebar
Parameters:
{string} a
url representing a controller method server-side
{object} data
sent along with the ajax request
Returns:
{object} a list of all active users

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Aug 18 2011 17:57:33 GMT-0700 (PDT)