Articles tagged with AJAX
Dojo Helper
Autocomplete
http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/
The full component and some sample controller and view code is here.
Redirects with Ajax
Ajax Validation Component
Confirm - Checks two or more fields to make sure they are an exact match (designed for password creation).
Unique - Checks to make sure that a field is not already present in the database (ie email, username, etc).
More output options - There are three output options - unordered list in a div tag of your choice, a JavaScript alert, or just the array to do what you want with it.
Error Class - It has the option to change the CSS class of the label tags for the invalid fields.
The component uses Ajax to be able to validate without refreshing the page. It also relies heavily on the "Standard" CakePHP naming conventions for easier integration.
Greater Control with Webservices Component
Using TinyMCE with CakePHP and AJAX
Ajax Chat Plugin
Advanced Pagination (1.2)
Using requestAction & custom layouts to add XHR functionality
ACL Management Plugin
Ajax elements available anywhere
When I have chosen to work with Cakephp it was because of all these great features that we could use to create an ajax app easily. However, I had some problems to manage Ajax view elements like header, footer,... I figured out a solution that I would like to share with the community and have feedback about. (p.s : forgive me for my english, i'm not a native speaker)
Here's an overview of the problem. Ajax key feature is to smooth the user navigation by preventing page reloading through ajax requests. Let's say that you want to put an Ajax login into your website header. You need to be able to use the feature anywhere on the website.
After hours of readings i found out that to be compliant with cakephp MVC structure the process should be the following :
- 1. Ajax call to current controller.
- 2. request requested action from this controller or another controller.
- 3. proceed with your algorithm.
- 4. setting the values into the view that has to be rendered.
- 5. render the view or element.
- 6. end of Ajax call.
Latest Comments