LD SoftwareBespoke Software, Web Design, Security Consultants and Host Services.


You have been warned!
We have caught 5876 shameful hackers.


Paypal Referral
Sign up for PayPal and start accepting credit card payments instantly.

Link Exchange
Join our free link exchange

Click Here
Reverse Ajax

Web Design & Development Guide

Reverse Ajax

Home | Up

Reverse Ajax, not unlike DHTML, LAMP, Ajax and SPA, is not a technology in itself, but a term that refers to the use of a group of technologies together. These technologies include:

  • Ajax for handling the data on the client side in a smooth and interactive way, and passing data between server and client.
  • A technology for pushing server data to a browser
    • Comet, a connection between a server and client is kept open, by slowly loading a page in a hidden frame.
    • Piggyback, extra data is added (piggybacked) onto a normal client-server interaction.
    • Polling, the client repetitively queries (poll) the server.

Reverse Ajax is different from Ajax, as Reverse Ajax is a suite of technologies for pushing data from a server to a client. These technologies are built upon an Ajax framework.


The Polling technique is not properly a Reverse Ajax solution, because in this case the server simply responds to a repeated direct ajax request. The result is the same that Reverse Ajax, but this technique is not too elegant to be used because it makes a lot of unnecessary traffic.

Let's take a simple example:

The broadcast message.

We have 2 clients and 1 server: client1 needs to send "hello" to all the other clients

With Polling:

  • client1 sends the message "hello"
  • server receives the message "hello"
  • client2 polls the server
  • client2 receives the message "hello"
  • client1 polls the server <-- unnecessary traffic starts
  • client1 receives the message "hello"
  • client2 polls the server
  • client2 receives the message "hello" <-- unnecessary traffic continues

and these last lines repeat forever.

With Comet:

  • client1 sends the message "hello"
  • server receives the message "hello"
  • server sends the message "hello" to all clients

no unnecessary traffic.

With PiggyBack:

  • client1 sends the message "hello"
  • server receives the message "hello"
  • client2 does any request to the server
  • server adds to the response the message "hello"

no unnecessary traffic.

See also

External links


Home | Up | JavaScript library | Smart client | Reverse Ajax | Document Update Markup Language | Comparison between AJAX and Flex

Web Design & Development Guide, made by MultiMedia | Websites for sale

This guide is licensed under the GNU Free Documentation License. It uses material from the Wikipedia.


Text Ads
There isn't content right now for this block.

Community Login


People Online:
Visitors: 33
Members: 1
Total: 34

Online Now:
01 : Monty

Like my code
Then please make a donation.

Which help me produce more free code.

Paypal Verified


Powered by PHP-Nuke

Valid CSS!

Valid Robots.txt

Bad Behavior

[Valid RSS]

[Valid RSS]
You can syndicate our News with backend.php And our Forums with rss.php
You can also access our feeds via Feedburner Site News and LD Software Forums
© 2009 ld-software.co.uk All Rights Reserved.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.53 Seconds