Chat

This applet allows your visitors to chat. It displays a button, when you click this button the chat window appears. You have to choose a nickname to connect to the chat. Then you chat with the other visitors. There are a few commands such as "/beep nick" which beeps nick's computer, "/priv nick" which sends a private message to nick or "/topic topic" which changes the title of the frame to topic... Launch the applet and type /help for commands help.
If you are a registered user you can email us and ask for the sources of the applet and the server.
How does this applet work ? When you enter the chat and choose a nick the applet connects to the chat server running on your web host machine. This server is a small Java program so it can run on any platform. The server communicates with all the chat applets.
Important note:   1) As you can see you need to have an access to the computer hosting the web server so that you can make the server running.
2) If you want to try this applet on your local host, you need to put the files in your local web server directory and type the address http://localhost in your browser. It will not work if you launch the applet from somewhere else on your hard drive disk.

How to launch the server ?
- All platforms: you need a Java Runtime Environment to run a Java program: JDK1.1 or higher, JRE 1.1 or higher, J2SDK, J2SE, J2EE ... If you don't have such a tool then you can download one (J2SDK for instance) at http://www.java.sun.com.
Open a command window, change directory to the directory containing the server classes (f you have installed Easy Applet Builder on Windows, default is "C:\program files\Taijisoftware\Easy Applet Builder\samples\Chat\server", if you have installed Taiji Aplet Pack then go the "Chat\server").
Launch the server : java FriendsServer
The default port number is 5554, that is to say the server is listenning on this port. You can set another port by using : java FriendsServer portnumber. If you change the server port you have to change also the applet port parameter.
- Windows 98/ME/NT/2000: You can use the Java runtime environment of Windows. Proceed as described above, but type :
jview FriendsServer
or : jview FriendsServer portnumber to set the port yourself.

How to stop the server ?
Kill it with :
- Control+C keys in the command window
- The windows task manager
- A kill -x command
...

Note: Once the server is stopped (after a kill or machine reboot) you need to start it again. If no server is running and if a visitor try to connect the chat then he/she will see a message : "can't connect to..."

Name

Description

Default

Status

text the text of the button "Enter"

required

button_color the button color usual button color

required

button_width the button width applet width

required

button_height the button height applet height

required

background_color

the background color

usual applet grey

required

port the server port number 5554 optional
frame_title the caption of the chat frame. If the topic command is enabled, this title will be replaced by the current topic. "Chat room" required
allow_beep allow the /beep command (0: do not allow, 1: allow) 1 required
allow_priv allow the /priv command (0: do not allow, 1: allow) 1 required
allow_whois allow the /whois command (0: do not allow, 1: allow) 1 required
allow_topic allow the /topic command (0: do not allow, 1: allow) 1 required
display_time display time stamps  (0: display, 1: do not display) 1 required
start_msg this message is displayed in the chat window when the applet starts - optional
registration_code the registration code -

required

 

Special notes

* The background color format is hexadecimal format like this : blue is "#0000ff"", red is "#ff0000" ... If you want that the       background color is the same as the one of the page, look at the html source file and find the balise : <body bgcolor="#00FFFF"> then copy the value, here it's "#00ffff". Use the "HexColor" applet to convert RGB color to hexadecimal color.

 

Copyright 1999-2001 Taiji Software
All Rights Reserved
http://www.taijisoftware.com
support@taijisoftware.com