samax
12 Jun 2009, 2:41 AM
Hello,
I try to use Ext.Direct to retrieve a Json object by AJAX, but I think I do that wrong because I try to create an instance of Ext.Direct and it seems that it cannot be instanciated.
Here is what I do:
var remoteCall = new Ext.Direct;
remoteCall.addProvider({
"type": "remoting",
"url": "http://localhost/test.php"
});
remoteCall.on("data", function(e, fieldname) {
console.log(e.data);
});
Does someone know how to use this?
Thanks
I try to use Ext.Direct to retrieve a Json object by AJAX, but I think I do that wrong because I try to create an instance of Ext.Direct and it seems that it cannot be instanciated.
Here is what I do:
var remoteCall = new Ext.Direct;
remoteCall.addProvider({
"type": "remoting",
"url": "http://localhost/test.php"
});
remoteCall.on("data", function(e, fieldname) {
console.log(e.data);
});
Does someone know how to use this?
Thanks