How does ajax push work?

Simply put, how is the ajax button clicked? Is this done through the same object that is used for regular ajax requests?

+4
source share
4 answers

Simply put, how is ajax clicked?

The general idea is to always have a server freeze request, so the server can respond to it whenever it wants to “push” something to the client.

Is this done through the same object that is used for regular ajax requests?

It may be, but you can emulate it with an iframe . This field is currently under very active development, so perhaps WebSockets and EventSource should also be mentioned here.

+7
source

Wikipedia has a simple definition of the comet model used to work AJAX push

+3
source

The simple logic is to receive updates from the server at a prefix time interval. This is usually done using the setInterval () method of javascript, and jquery ajax is used to check the server database. You can visit this URL http://tinytute.com/wordpress/2013/08/02/create-a-simple-jquery-php-based-push-notification/

+1
source

All Articles