So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By martinayotte
#72809 MicroAjax is a small footprint javascript to do Ajax call. It can be found here :

https://code.google.com/archive/p/microajax/

So, in your HTML page simply include this script and do the calls with onClick of your button :

Code: Select all<html><head><script src='/microajax.js' type='text/javascript'></script></head><body>
<input type='button' style='width:100px;height:30px' value='LED_ON' onClick="microAjax('/TurnOnLED', function(res) { } );" /><br>
<input type='button' style='width:100px;height:30px' value='LED_OFF' onClick="microAjax('/TurnOffLED', function(res) { } );" /><br>
</body></html>
User avatar
By potz
#72853 Thanks martinayotte!

But why is microajax needed ? Because for the "standard" button it's not required ?

Thanks and happy new year