开发者

localization: fetching translation words via Ext.Ajax.request in Extjs

In my Extjs application, I need to fetch an array of translated words which I'm doing with the help of AJAX request.

Since AJAX runs in the background why does it not populate the text as the labels of the components in the real time.

Is there any way to make AJAX populate in real time?

开发者_JAVA百科Thanks..


With out looking at your code I can only be general.

Most Ajax calls are make with helper function that wait for "200" (completed) response from the server and after that dose what ever with the response.

It waits for the "200" response so it dose not try to work with a half finished response, and make errors.

You can brake the Ajax calls in to smaller segments (one call from one box, and so on)

But there is not a good way to work with Ajax responses before you are sure you have all the file/text that is in the Ajax response.

Hope that this helps clear it up a bit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜