Yes, please see PHPLiveX . It is lightweight, and there with further development. Thanks
Code example:
function generateRandomCode($length){ $chars = array("1","2","3","4","5","6","a","b","c","d","e","f"); $code = array_rand(array_flip($chars), $length); return implode($code); } // Necessary PHPLiveX Codes include("PHPLiveX.php"); $ajax = new PHPLiveX(array("generateRandomCode")); $ajax->Run(); // Must be called inside the 'html' tags. <input onclick="generateRandomCode(10, {'target':'rcode','preloader':'pr'});" type="button" value="Generate Random Code" > <img id="pr" src="design/Progressbar2.gif" style="visibility:hidden;"> <span id="rcode"></span>
source share