Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does ajax push work?

Tags:

ajax

push

In simple terms, how is push achieved through ajax? Is this done through the same object used for conventional ajax requests?

like image 575
James P. Avatar asked Jun 01 '11 11:06

James P.


3 Answers

Wikipedia has a simple definition of the Comet model, used to make AJAX push work

like image 28
Grooveek Avatar answered Oct 20 '22 04:10

Grooveek


In simple terms, how is push achieved through ajax?

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

Is this done through the same object used for conventional ajax requests?

It can be, but you can emulate it with an iframe as well. This field is in very active development currently, so maybe WebSockets and the EventSource should be mentioned here as well.

like image 132
Waldheinz Avatar answered Oct 20 '22 03:10

Waldheinz


http://en.wikipedia.org/wiki/Reverse_Ajax

It might be the standard in HTML5

http://en.wikipedia.org/wiki/Server-sent_events

like image 2
parapura rajkumar Avatar answered Oct 20 '22 05:10

parapura rajkumar