Articles tagged with AJAX

Dojo Helper

By Christian Trummer
A Dojo Helper class for some Widgets but mainly for AJAX support like you know it from the AJAX Helper!
[Read more]

Autocomplete

By gwoo
The AutocompleteComponent originally submitted by Nate to CakeForge. With a nice intro at
http://cakebaker.42dh.com/2006/06/06/autocompletion-the-easy-way/
The full component and some sample controller and view code is here.
[Read more]

Redirects with Ajax

By sunertl
Redirects with Ajax are not really simple to do. When you redirect within the same controller, you can use setAction() instead but what if you want to redirect to another controller? I figured out a quite simple way using sessions, postet it - and got back the IMHO perfect solution by gwoo.
[Read more]

Ajax Validation Component

By Garth Braithwaite
This component adds a few validation options to the already wonderful CakePHP form validation. These features include:
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.
[Read more]

Greater Control with Webservices Component

By Erik
Achieving better control over the Webservices feature provided by the core of CakePHP.
[Read more]

Using TinyMCE with CakePHP and AJAX

By Tom OReilly
jtreglos wrote an excellent article for integrating TinyMCE into your applications. This takes it one step further, making it possible to have powerful wysiwyg features almost anywhere.
[Read more]

Ajax Chat Plugin

By Matt Curry
A basic Ajax chat plugin.
[Read more]

Advanced Pagination (1.2)

By Rob Conner
This tutorial will attempt to cover some advanced techniques of pagination. In large this will cover Ajax pagination. Hopefully we can also uncover some of the better practices and techniques to use with pagination.
[Read more]

Using requestAction & custom layouts to add XHR functionality

By A.Doherty
This tutorial outlines a method for creating or modifying Cake apps that work swiftly for XHR(XmlHTTPRequest)-enabled clients and degrade well to non-XHR/AJAX (even javascript disabled) clients. The guidance provided here will be most suitable to newly converted Bakers. It simply outlines some of Cake's many flexible features and shows how using them in combination can bring rapid returns.
[Read more]

ACL Management Plugin

By Jeff Loiselle
A simple, easy, AJAXY, solution for managing your access control lists.
[Read more]

Ajax elements available anywhere

By Sami Radi

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.

[Read more]

Force login on Ajax requests

By Michal Szajbe
Users often encounter situations when they want to perform an action on a web site and get redirected to login page. Application’s task is to take care of performing the requested action right after user’s successful log in. It is easy job, unless the action is requested via ajax.
[Read more]

Getting started quickly with Scriptaculous effects

By Jan Boonen
CakePHP's AJAX helper offers you direct access to the Sciptaculous library. If you have little AJAX experience, the usage of this helper might seem overwhelming. It is not, the largest part of the job is creating good views.
[Read more]

jQuery autocomplete Helper

By Gianluca
I use jQuery becose is fast and concise Javascript library. My helper, jmycake, use jQuery for AJAX autocomplete.
[Read more]

Easy AJAX Pagination Using JQuery

By Casey Dreier
This simple little JQuery function allows you to drop paginated data into your views with ease.
[Read more]