If the catalog id is already defined the input form gets
auto-completed with the catalog entry values in the Ajax response. If the
catalog id is not already defined a new catalog entry may be created.
8 Ajax with PHP-Xajax
8.1 Introduction
According to Ajaxian.com1 on Ajax PHP is the most commonly used
Platform for Ajax. PHP may be used on the server side by specifying a
PHP file as the URL in the open() method of the XMLHttpRequest
object. PHP may also be used with Ajax with a PHP framework for Ajax.
Various PHP Ajax frameworks are available. According to the survey by
Ajaxian.com, Xajax is the most commonly used PHP Ajax framework.
Xajax is an open source, object oriented, PHP class library, with which,
PHP scripts may be used for server side processing. In this chapter we
shall create a Xajax application.
Xajax is used to communicate asynchronously between a client
application and a server side application comprised of PHP scripts. Xajax
generates JavaScript wrapper functions for PHP functions on the server
side that may be accessed from a client application. When a client
application invokes the wrapper functions, an XMLHttpRequest object
is initiated and an XMLHttpRequest object is sent to the server. On the
server, the XJAX object receives the XMLHttpRequest and invokes the
PHP functions corresponding to the JavaScript wrapper functions. The
default request type of PHP functions registered through Xajax is POST.
Pages:
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147