KoolAjaxRequest Settings
 
<script type="text/javascript">

/* Note that all properties of KoolAjaxRequest settings are optional.
 * If a property is not defined, the default value of that property will be used.
 */

var request = new KoolAjaxRequest({
    method:"post",
    url:"destination.php",
    timeout:1000,
    sync:false,
    charset:"utf-8",	
    onOpen:function()
    {
        alert("onOpen");
    },
    onSent:function()
    {
        alert("onSent");
    },
    onReceive:function()
    {
        alert("onReceive");
    },
    onDone:function(result)
    {
        alert(result);
    },
    onError:function(errorCode)
    {
        alert(errorCode);
    },
    onTimeOut:function()
    {
        alert("onTimeOut");
        return true;// Continue waiting.
    },
    onAbort:function()
    {
        alert("onAbort");
    }
});	
koolajax.sendRequest(request);	
</script>