Author: vingtetun
Date: 2009-02-02 19:59:56 +0100 (Mon, 02 Feb 2009)
New Revision: 3550

Modified:
   
software_suite_v2/tuxware/tuxhttpserver/trunk/src/data/html/test_mouth_cmd.html
Log:
* Sync the test_mouth_cmd with the new API

Modified: 
software_suite_v2/tuxware/tuxhttpserver/trunk/src/data/html/test_mouth_cmd.html
===================================================================
--- 
software_suite_v2/tuxware/tuxhttpserver/trunk/src/data/html/test_mouth_cmd.html 
    2009-02-02 18:59:25 UTC (rev 3549)
+++ 
software_suite_v2/tuxware/tuxhttpserver/trunk/src/data/html/test_mouth_cmd.html 
    2009-02-02 18:59:56 UTC (rev 3550)
@@ -16,11 +16,10 @@
 
 
     var tux = new TuxAPI();
-    tux.connect("AjaxTest", "123456789");
-    tux.register_event("head_button", on_head_button);
-    tux.register_event("mouth_remaining_movements", on_mouth_position);
-    setInterval('tux.__retrieve_events()', 100);
-    tux.mouth.get_position();
+    tux.server.connect(0, "AjaxTest", "123456789");
+    tux.event.handler.register("head_button", on_head_button);
+    tux.event.handler.register("mouth_remaining_movements", on_mouth_position);
+    tux.mouth.getPosition();
     
 </script>
 
@@ -34,8 +33,8 @@
 <input type="text" id="i_count" value="2"/>
 <input type="text" id="i_final_state" value="NDEF"/><br>
 
-<input type="button" id="butAddReset" value="Mouth on during" 
onClick="javascript:tux.mouth.on_during(document.getElementById('i_duration').value,
 document.getElementById('i_final_state1').value);"/>
+<input type="button" id="butAddReset" value="Mouth on during" 
onClick="javascript:tux.mouth.onDuring(document.getElementById('i_duration').value,
 document.getElementById('i_final_state1').value);"/>
 <input type="text" id="i_duration" value="2.0"/>
 <input type="text" id="i_final_state1" value="NDEF"/><br>
 
-<input type="button" id="butAddReset" value="Mouth off" 
onClick="javascript:tux.mouth.off();"/> <br>
\ No newline at end of file
+<input type="button" id="butAddReset" value="Mouth off" 
onClick="javascript:tux.mouth.off();"/> <br>


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to