12.02.2013 Views

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

Community Building with ChatSpace Server Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

{ // This is the call being illustrated<br />

alert('This room is registered');<br />

}<br />

}<br />

<br />

Controlling Use of Sound and Color<br />

showjoins()<br />

This function returns boolean value (true or false).<br />

This function returns a non-zero (true) value if the client is configured<br />

to show people joining the room.<br />

Example:<br />

<br />

// Make sure joins are being shown<br />

function checkJoins()<br />

{<br />

if (!document.cs.showJoins())<br />

{ // This is the call being illustrated<br />

document.cs.showJoins(true);<br />

}<br />

}<br />

<br />

showjoins( boolean )<br />

This function sets whether a message is sent to the room when a user<br />

joins.<br />

Example:<br />

<br />

// Make sure joins are being shown<br />

function checkJoins()<br />

{<br />

if (!document.cs.showJoins())<br />

{<br />

103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!