Specific best practices for injection, AJAX data manipulation

Since my raid on AJAX, I have always used the “any job” method to process AJAX data. I would like to know what the ultimate and current best practice is for data processing.

Is it best to generate HTML through a script server and inject the returned data into the onComplete function? Should XML / JSON be considered first? How to manage returned data? Using .live () doesn't seem to be the most efficient way.

I have never seen a definitive answer to this question. Your experience is much appreciated.

+3
source share
1 answer

It all depends on what you are talking about!

, , " " json. , , . , Ext-js:

obj = Ext.util.JSON.decode(action.response.responseText);

(), json, .

javascript , :

.load(), .eval(), ....

html xml . json. - , , , .

+1

Source: https://habr.com/ru/post/1735495/


All Articles