0.2.4 Release Notes
0.2.4 Release Notes
These are the changes since xajax 0.2.3
Package-wide Changes
- All inline documentation has been converted over to the industry-standard PHPDoc format (similar to JavaDoc). This means you can run xajax through software such as phpDocumenter and a complete set of API documentation will be generated -- very useful if you're including xajax in a larger PHP application and want its documentation to be included automatically.
xajax.inc.php Changes
- File includes now use an absolute base path to fix a problem whereby the lack of the current directory being in the include path from a PHP ini file would render xajax unusable.
- A logic bug has been fixed that was preventing multi-level arrays from being decoded from UTF-8 if UTF-8 decoding was turned on.
xajaxResponse.inc.php Changes
- Added a new ability for xajax to call a Javascript function and pass multiple arguments as part of the response via the addScriptCall method (based on a patch by Luis Fagundes). Basically, this allows you to pass data variables including arrays and object properties from PHP to Javascript. It's kind of like JSON but rather it uses a simple XML data format instead. See http://community.xajaxproject.org/viewtopic.php?pid=5134#p5134 for additional information.
- Added an addInsertInputAfter method to compliment addInsertInput (it's like addInsertAfter vs. addInsert but for form elements).
- Added a new method, addConfirmCommands, that allows you to specify that 1 or more later commands should be run only if the user clicks OK in a Javascript confirm dialog.
xajax_uncompressed.js Changes
- You can now customize which HTTP errors should trigger a Javascript alert via altering the responseErrorsForAlert array property of the xajax object. The new defaults are: 400, 401, 402, 403, 404, 500, 501, 502, 503.
- Added Javascript support for the features noted above for xajaxResponse.