This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
EXT: TYPO3 adapted xaJax¶
|Changed by:||Holzinger Franz|
EXT: TYPO3 adapted xaJax - taxajax
EXT: TYPO3 adapted xaJax¶
Extension Key: taxajax
Copyright 2011-2014, Franz Holzinger, <firstname.lastname@example.org>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.org
Table of Contents¶
`Introduction 3 <#2.1.Introduction|outline>`_
Why should I use xajax instead of another Ajax library for PHP? 3
Where do I find the documentation and get help? 4
`ChangeLog 5 <#2.2.ChangeLog|outline>`_
What is xajax?¶
Within the extension taxaJax the original xajax library has been licensed from LGPL to GPL to match the license requirements of TYPO3. All namings have been adapted to the coding guidelines of TYPO3. taxajax is the same as the xajax extension, but with TYPO3 specific changes to the code
How does xajax work?¶
Why should I use xajax instead of another Ajax library for PHP?¶
You should choose whatever library will best meet the needs of your project.
xajax offers the following features that, together, make it unique and powerful:
xajax is object oriented to maintain tighter relationships between the code and data, and to keep the xajax code separate from other code. Because it is object oriented, you can add your own custom functionality to xajax by extending the xajaxResponse class and using the addScript() method.
xajax works in Firefox , Mozilla, probably other Mozilla based browsers, Internet Explorer , and Safari .
In addition to updating element values and innerHTML, xajax can be used to update styles, css classes, checkbox and radio button selection, or nearly any other element attribute.
. It even works with complex input names like "checkbox" and "name[first]" to produce multidimensional and associative arrays, just as if you had submitted the form and used the PHP $_GET array
xajax automatically compares the data returned from the PHP functions to the data that is already in the attribute of the element you have marked for change. The attribute is only updated with the new data if it will actually change what is already in the attribute . This eliminates the flicker often observed in applications that update content at a regular time interval with data which may or may not differ from extant content.
Each function registered to be accessible through xajax can have a different request type . All functions default to use POST unless GET is explicitly set. This is to encourage careful consideration of when to use GET requests
If no request URI is specified, xajax tries to autodetect the URL of the script. The xajax autodetection algorithm is sophisticated enough that, on most servers, it will work under a secure https:// protocol as well as http:// and with nonstandard ports.
xajax can encode all of its requests and responses also in UTF-8 so that it can support a wider range of characters and languages. xajax has been successfully tested with various unicode characters including Spanish, Russian, Arabic, and Hebrew
Then you can use
in your header template to use xajax on your site.
Where do I find the documentation and get help?¶
The xaJax Tutor extension¶
To demonstrate how xaJax can be used within the FE and the BE we have prepared an own Extension xaJax-Tutor with the extension key xajax_tutor.
The original website of xajax¶
On http://www.xajax-project.org/ you find:
- a wiki
- a big forum, where you usually get personal help quickly
See the changelog file within the extension.