<script type="text/javascript">
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;
},
onAbort:function()
{
alert("onAbort");
}
});
koolajax.sendRequest(request);
</script>