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.

colors()<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 colors.<br />

Example:<br />

<br />

// See if colors can be seen by this client<br />

function checkColors()<br />

{<br />

if (!this.document.cs.colors())<br />

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

alert('Colors are not being shown');<br />

}<br />

}<br />

<br />

Custom Web-Based Profiles<br />

You can easily extend the functionality of the profile display. Add the<br />

following parameter to the Java Client’s Parameter File (see the previous<br />

section, Java Client API on page 95):<br />

Webprofile=YourWebProfileURLHere<br />

Substitute the URL for the web page you wish to be displayed when users<br />

attempt to view their own (or another member’s) profile. The following<br />

parameters are passed to the specified URL so that your page can display the<br />

correct profile (targnick) and validate access to it (nick and pass):<br />

Nick<br />

Pass<br />

Targnick<br />

Controlling Web Tours<br />

You may want to use the touring ability of Chatspace to show web pages or<br />

sites to users on the same page as their chat room. A convenient method to<br />

send someone on a tour is to use a frameset to create a structure where half<br />

105

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

Saved successfully!

Ooh no, something went wrong!