Login   Register  
Icontem

File: examples/example.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2010-09-01 07:20
Size: 397 bytes
 

Contents

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});