1 |
Chat application in pure HTML
|
2 |
open tangoTemplate.html file for editing
|
3 |
add HTML content at will
-
<form name="chat">
-
<input type="text" name="tty" size=18>
-
<input type="button" value="send">
-
</form>
|
4 |
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;
|
5 |
register the application in a Tango ControlApplication
|