File: examples/example.js

Recommend this page to a friend!
  Classes of Mustafa OZGUR   FESA   examples/example.js   Download  
File: examples/example.js
Role: Example script
Content type: text/plain
Description: example
Class: FESA
Send and receive AJAX request
Author: By
Last change:
Date: 13 years ago
Size: 397 bytes


Class file image Download
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});