Hello.
I work with ExtJS 3.1 . When executing a JS code, let's say:
... .... .... ... thisWindow.close(); Data.loadHtmlForm();// Берем с сервера некоторые данные openNextWindow();// открыть следующее окно, в котором должны быть загруженные данные. The current window closes, followed by an Ajax request that lasts for a while. The problem is that while the Ajax request is executed, the following functions continue to be executed.
Question: How to suspend further execution of the code until the request to the server is completed? Or how can I make a mask for the panel at boot time? Here, the Data.loadHtmlForm() function loads data from the server and initializes the htmlBlank variable with htmlBlank . I give the code of my panel:
xtype : 'panel', html : htmlBlank, x : 0, y : 0, width : 600, height : 850, id : 'panelId'