Chat application in pure HTML
|
open tangoTemplate.html file for editing
|
add HTML content at will
-
<form name="chat">
-
<input type="text" name="tty" size=18>
-
<input type="button" value="send">
-
</form>
|
add collaboratory functionality
-
call Tango_send(m) when Send buttom pressed
-
onclick="Tango_send( this.form.tty.value )"
-
handle Tango_receive(m) when message arrives
-
document.forms.chat.tty.value=m;
|
register the application in a Tango ControlApplication
|