AjaxAC: Open-source PHP framework for Ajax
Written by Ruhani Rabin on February 20, 2006.
The basic idea behind AjaxAC is that you create an AjaxAC application, which in itself contains a number of action handlers and event handlers. An application in this context might mean an entire web site powered by Ajax, or it could mean a subset of a form.
View the CountryRegionCity example, which uses Ajax to narrow down subselects.
Features
- All application code is self-contained in a single class (plus any additional JavaScript libraries)
- Calling PHP file / HTML page is very clean. All that is required is creating of the application class, then referencing the application JavaScript and attaching any required HTML elements to the application.
- Built in functionality for easily handling JavaScript events
- Built in functionality for creating subrequests and handling them
- Allows for custom configuration values, so certain elements can be set at run time
- No messy JavaScript code clogging up the calling HTML code - all events are dynamically attached
- Easy to integrate with templating engine due two above 2 reasons
- Easy to hook in to existing PHP classes or MySQL database for returning data from subrequests
- Extensible widget structure to be able to easily create further JavaScript objects (this needs a bit of work though)






