« Rico 1.1 (beta 2) Update now Available | Main | JavaScript Cheat Sheet »

GLM AJAX Framework

The GLM AJAX Framework, written by Jason Graves, is a cross browser framework that allows developers to quickly develop web pages that can call web services and server pages through javascript without having to submit the current page.

You can use the AJAX Framework to call simple page or web services.
Sample usage :

function pageCallback(response){

alert(response);

}

var ajax = new AJAX();
ajax.callPage("mypage.html", pageCallback);

Sample usage with Web services :

function serviceCallback(response){

alert(response);

}

var ajax = new AJAX();
ajax.callService("MyWebService.asmx", "MyMethodToCall", serviceCallback);

You can find more examples on the home page, you can also set an error handler function so you can redirect in case of error or display message function myErrorHandler(error){

alert(error);

}

var ajax = new AJAX();
ajax.onError = myErrorHandler;


The project is a single javascript file, you can download it from sourceforge

Bookmark this article at these sites
Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):