Home > PHP > xAjax and asynchronous updates

xAjax and asynchronous updates

Most of the libraries available for Ajax requires you to write your own functions in Javascript to process callbacks from the asynchronous requests in order to update the data but xajax gives you its own xajaxResponse object through which you can handle all within PHP. xajaxResponse object is here used to create XML which is returned to the application and that is then parsed by xajax message pump that results in updating the state of the application.

xajaxResponse gives a number of nice to use features like:

Assign –> This sets the specified attribute of an element in your page

Append –> Is used to append data to the end of the specified attribute of an element in your page

Prepend –> Prepends data to the beginning of the specified attribute of an element in your page

Replace –> Which searches for and replaces data in the specified attribute of an element in your page

Script –> This runs the supplied JavaScript code

Alert –> Shows an alert box with the supplied message text


Shoaib Mir
shoaibmir[@]gmail.com

Advertisements
Categories: PHP Tags: , , ,
  1. No comments yet.
  1. No trackbacks yet.

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: