--o Programming with AJAX and forms in WIKINDX o-- ---:::---:::---:::---:::---:::---:::---:::---:::---:::---:::---:::--- The AJAX implementation in WIKINDX consists of core PHP and javascript files in core/ajax and PHP and javascript files in folder locations pertaining to their function. There should be no need to edit the core/ajax files and everything you need to do can be done by calling up the core files, and their classes and methods, in your own AJAX PHP and javascript files which can then be placed where you wish. The implementation is powerful and flexible, allowing single AJAX actions per form, multiple AJAX actions per form (from a single trigger or multiple triggers) and even sequences of AJAX actions each dependent upon the result of the previous one. With power and flexibility comes complexity...but follow the steps below and you should be OK. AJAX programming in WIKINDX requires PHP functions and javascript functions and the advice is to place these in separate files in specific folders away from core/ajax. For example, the AJAX functionality on the Quick Search page, hiding and showing various select boxes depending upon the selection of options in other select boxes, is driven by core/modules/list/searchSelect.js and files in core/modules/list/ including LISTSHOWHIDE.php. In the example given below, the scripts referred to write the innerHTML property of the DIV given in $jsonArray['targetDiv'] with code produced by $jsonArray['script'] when the user clicks on an option in the form select box with the ID $jsonArray['triggerField'] thus setting in action the javascript function included with $ajax->loadJavascript() and referred to in $jsonArray['startFunction']. 1. Include the AJAX files in the HTML output of your page with the form. $ajax = FACTORY_AJAX::getInstance(); $ajax->loadJavascript('core/modules/list/searchSelect.js'); In this case, searchSelect.js is the javascript for Quick Search -- you will include your own javascript file. loadJavascript() can also take an array of javascript include files if you happen to have several. 2. Add the AJAX instructions to your form element(s). In this case, there are two AJAX actions to be performed when the user clicks on an