zf4000
28 May 2007, 9:44 PM
when i use Ext.data.connection to get the responseText returned from the server, the statment in Ext.data.connection.request() is exacuted later than that out of Ext.data.connection.request().
so , i think that may result from asynchronism of ajax.
but how to set the asynchronism in Ext.date.connection.
some one can help me?
here is the code
var con = new Ext.data.Connection();
con.request({
url: 'someurl',
method: 'GET',
loadMask: true,
callback: function(oElement,bSuccess,oRespons) {
alert('i am in Ext.data.Connection');
}
)
alert('i am out of Ext.data.Connection!');
the question is : 'i am out of ...' is erlier than 'i am in ...'
so , i think that may result from asynchronism of ajax.
but how to set the asynchronism in Ext.date.connection.
some one can help me?
here is the code
var con = new Ext.data.Connection();
con.request({
url: 'someurl',
method: 'GET',
loadMask: true,
callback: function(oElement,bSuccess,oRespons) {
alert('i am in Ext.data.Connection');
}
)
alert('i am out of Ext.data.Connection!');
the question is : 'i am out of ...' is erlier than 'i am in ...'