How does asychronous AJAX application works?

I get the gist. You can keep using the application even when the request is getting processed by server. But I want to learn its timing diagram as well.

So here user event happened. 

Consider the first even. Then the ajax engine handled it. But how will ajax engine handle the second, third and fourth user event? It is missed. Or will it be handled in second phase(that ajax eng-server one).?
Clarify please.


3 Replies 1 reply marked as answer

PG Pon Geetha A J Syncfusion Team June 10, 2022 10:26 AM UTC

Hi,


Please refer the following links for more information and let us know if you have any queries with Syncfusion controls.

https://stackoverflow.com/questions/54433683/difference-between-synchronous-and-asynchronous-ajax-request

https://stackoverflow.com/questions/3393751/what-does-asynchronous-means-in-ajax



Regards,

Geetha




PK Prabhat Kumar Pandey replied to Pon Geetha A J June 10, 2022 12:33 PM UTC

I understand what it means. I am not understanding this diagram only. but I think this diagram isn't very accurate. can you tell what this diagram is trying to tell? ps i am a learner.



RR Rajendran R Syncfusion Team June 14, 2022 02:29 AM UTC

Hi Prabhat,


The diagram describes the following things. But they seem to have missed covering how to process each AJAX requests. How


  • The browser sends an HTTP request to the server through AJAX engine.
  • The Server processes the AJAX requests and returns the response to browser through the same AJAX engine.
  • The browser receives the AJAX response and updates the UI.


Meanwhile, your image source is updated below. Could you please check with the publisher if it is feasible?


https://www.researchgate.net/figure/AJAX-Model-partial-UI-updates-and-asynchronous-communications-Source_fig1_259339601


You can learn more about AJAX in these links.


Regards,

Rajendran R


Marked as answer
Loader.
Up arrow icon