CallSite Applets
 
 

Section: IV.B

Add the Button Applet to html Pages

Assuming that John Doe at your company has an Agent application installed and running, you can add the following Applet code to any Web page that you want him to be called from. Of course substituting domain name, full name, and user name accordingly.

The following Applet code is the mandatory minimum code required, but there are a lot of additional parameters that CallSite provides you which you can set to change the look & feel as well as the behavior of your CallSite call Buttons and the window that Pops Up after the call button is clicked on. See the Configuration section for details.

<HTML>

<HEAD>
<TITLE> NetDIVE CallSite</TITLE>

<script language="JavaScript1.1" src="cb.js"></script>

</HEAD>

<BODY onload="init()" TEXT="#000000" BGCOLOR="#ffffff" ALINK="#FF0000" link="#001E50" vlink="#001E50"
leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<applet code="com.netdive.callsite.applet.Pager" codebase="http://www.netdive.com/callsite5/applet/"
archive="Pager.jar" width="160" height="110" align="BOTTOM" name="sticky">

<param name="CABBASE" value="Pager.cab">
< param name="host" value="www.mydomain.com">
< param name="port" value="6680">
< param name="httpPort" value="80">
< param name="servletBase" value="examples/servlet/callsite">
< param name="agent" value="john">
<param name="fullName" value="John Doe">
< param name="cobrowsHost" value="www.mydomain.com">
<param name="cobrowsPort" value="6684">
< param name="cobrowsHttpPort" value="80">
< param name="callButtonImage" value="images/callButton.gif">
</applet>

</BODY>

</HTML>

 

Warning : The value of agent MUST be in lowercase

Make sure to include JavaScript file
The CallSite button has a JavaScript component included with it. So, for the Call buttons to work properly, you should include the JavaScript file 'cb.js' in the same directory where the HTML files containing the call buttons are placed.

Quick Test of your CallSite
To test your CallSite system, load the page containing the above Applet code into any Web browser.
The CallSite client Applet Button will appear indicating the status of John Doe. If he is online with his CallSite Agent application turned on, you will see the CallSite button indicating "on-line", otherwise it will indicate "off-line". If he is on-line, to call John Doe and establish communication with him via your CallSite system, just click his CallSite call button.

Locate Call button anywhere you want
You can place the HTML applet code containing your CallSite call buttons pointing to your CallSite server, which means ultimately to your Agents, on any Web pages you want, even if those web pages are not located within the same directory as the CallSite package.