-
31 Aug 2009 1:18 PM #41
the codes I used for synchronous call is just set async: false, but it stopped working as it used to.
at async: false for Ext.Ajax.request ({...}), asynchronous call is undertaken. how should
I get synchronous call back ?
thanks
mxu
//////////////////////////////////////////////////////////
Ext.Ajax.request ({
//Ext.lib.Ajax.request({
url: url2use,
params: {},
method: 'GET',
async: false,
scope: this,
success: function (result, request) {
var jsonData = Ext.util.JSON.decode(result.responseText);
...
},
failure: function ( result, request) {
Ext.ux.GaPMegBox.show('Ajax Request Error', 'Failed to get information on SNP<br/>and use default setting instead' , 5);
},
callback: function( result, request ){
}
});
////////////////////////////////////////////////////////////////
-
22 Jan 2010 10:56 PM #42
-
25 Jan 2010 4:13 PM #43
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
7 Apr 2010 10:30 AM #44
my solution
my solution
I had the same challenge. It's ideal for my app to only save state to the server on page unload. So I use the 'onbeforeunload' window event and a standard XMLHTTP wrapper to make a synchronous POST to the server with the state. It works fine, but only Firefox shows a nice Ext mask loading message before the POST. IE prevents such actions during this event, I guess.
-Michael B2B web application developer
-
26 Aug 2012 5:40 AM #45
It is possible to do a sync call with the Ajax object
It is possible to do a sync call with the Ajax object
most Ajax objects have an async flag true or false. Most people don't know this and at times can solve brower issures.
-
18 Sep 2012 9:06 PM #46
Test
Test
Test.


Reply With Quote


