AJAX using only an image

AJAX using only an image: “# The client to server connection works by sending a request to the server using a dynamically created image with some parameters added to its ‘.src’ property.

The server’s response is sent in a cookie at the same time the generated image is returned to the client. Or, when cookies are disabled, by using the image’s width and height to send, two by two, the characters forming the response!

# There are some limitations and performance issues related to this technique, especially when cookies are disabled on the client.

# A lot of improvements could be done. In the cookie version for example, an iteration method that would split the server’s response and send it chunk by chunk would be a good idea to deal with a cookie’s size limit.

# Some people suggested me articles that describe a similar technique: article 1 article 2

Both articles describe a technique using an image and a cookie. But those do not work when cookies are disabled.

# The associated PHP file: image.php “

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: