function load_handler(data, status)
{
_('response_div').html(data);
}
function start_handler()
{
//request starting..
}
function error_handler(error_code, error_text)
{
malert(error_code + ': ' + error_text); //malert is a alias of MIT.SMSG.alert() function.
}
doReq({url:'test.php?get=10', method:'get', onLoad:load_handler, onStart:start_handler, onError:error_handler});
|