Every day it’s more common make AJAX calls in our Web applications, so here is a very easy way to make it using the Extjs framework. Now the available version is 2.0.
Here is the code sniped:
var conn = new Ext.data.Connection();
conn.request({
url:‘request.php’,
method:‘POST’,
success: function(responseObject) {
alert(“Hello,Word!”);
},
failure: function() {
alert(“Something fail”);
}
});
As we can see this is a very easy task to do with Extjs, we only have to set the url of the service that we want to call, the method that should be used and the functions to handle the success or the failure.

January 22nd, 2008
Ntt.cc
Posted in
Tags: 
RSS Feed
Email Feed