Skip to main content

Posts

Showing posts with the label AJAX Synchronous and Asynchronous Request

jQuery AJAX - Asynchronous Request

The  Asynchronous  Request non-blocking the client  DOM / browser  until your operations is completed and only initiates the operations. It is a backgrounds process.   It is not  hold  and  waits  process and it is an asynchronous call and the asynchronous calls do not wait for a response to close the socket. The Asynchronous call are using when requests are not depend to each other request’s responses. The callback server must be available or the response will be failed. The operations (send, receive, and reply) will be synchronous or asynchronous. By default, the  $.ajax  request in  jQuery  is set to asynchronous and we can set ( async :  false ) for synchronous operations otherwise ( async :  true ). For Synchronous request click...     Example – AJAX Asynchronous Call //AJAX Synchronous and Asynchronous Requests. //#REGION NAMESPACE var demo = demo || {}; //...

jQuery AJAX - Synchronous Request

The Synchronous  Request blocks the client DOM / browser until your operations is completed. It is basically hold and wait process. The second process will execute after first one is completed and when a synchronous call occurred that time the DOM/browser both are blocked. A Synchronous call opens a socket and waits for a response before closing the socket. The operations (send, receive, and reply) will be Synchronous or Asynchronous. The every blocking operation is not synchronous operations and it may be other operations. By default, the $.ajax request in jQuery is set to asynchronous and we can set ( async : false ) for synchronous operations otherwise ( async : true ). For Asynchronous request click... Example – AJAX Synchronous Call //AJAX Synchronous and Asynchronous Requests. //#REGION NAMESPACE var demo = demo || {}; //#ENDREGION demo.ajax = demo.ajax || ( function () { var getBaseURL = function () { var c...