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