Articles tagged with javascript

Toggling items with javascript

By Dieter Plaetinck
This tutorial explains how you can toggle (expand/collapse) certain items on your webpage using javascript (without the need of new pagerequests)
[Read more]

Behaviour.js Helper

By Kjell Bublitz
Helps you using the Behaviour Javacript in your App. Behaviour can be used to attach Javascript to Elements. With this you can easily avoid using inline-Javascript.
[Read more]

JS Vaildator

By Garth Braithwaite
This helper generates JavaScript validation based on the model's validate array, and also offers a few extra features.
These features include:
Server: a Ajax script to validate one field server-side (this was originally designed to make sure a field is unique on the table ie username or email)
Confirm: to check that two or more fields are equal (designed for password fields or to confirm email accounts)
Custom required fields: if you don't want to use strictly the model's validate array or if you want to append a few fields that may not actually appear in the array

Currently the validator uses a JavaScript alert to let user know what changes need to be made, but I am going to make it optional to have the results returned in a div tag of your choice as a unordered list. Until I finish that this will get you started.

Please let me know if this helps anyone, or how I could improve it.
[Read more]

AssetPackager for CakePHP

By Brad Daily
Multiple javascript and CSS files simplify things in development, but in production they can begin to adversely affect your page loading times. With AssetPackager for CakePHP, we can have the best of both worlds by allowing multiple files during development and combining and compressing those files for deployment.
[Read more]

Automatic JavaScript and CSS Packer

By Matt Curry
Another JavaScript/CSS combiner and packer was recently posted to the Bakery. I felt it was a little configuration heavy and required too much manual intervention. This version is much more automated and requires virtually no code changes.
[Read more]

Lightroom Helper

By Julian Phillip Sander
This is a simple helper for people who want to use the lightbox.js
[Read more]

Prototip Helper

By Andy Leeb
This is a helper for people using prototip. Prototip is available here: http://www.nickstakenburg.com/projects/prototip/files/prototip1.1.0.zip

The provided code was written for the 1.1.x branch of CakePHP. I would imagine that it would easily be updated for 1.2.x
[Read more]

JSMin Helper Compress and cache javascript

By Mark Story
JSMinHelper offers an easy to use interface for compressing and caching javascript files, reducing bandwidth and server load.
[Read more]

Asset Mapper

By Marc Grabanski
Map your entire web application's asset (JavaScript/CSS) includes with one file!

Easier way to manage JavaScript and CSS includes. Built on top of Asset Packer which compacts files and put them through CSS Tidy and JSMin.
[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]

Automagic JavaScript Validation Helper

By Matt Curry
This helper takes your model validation rules and converts them to JavaScript so they can be applied in the client's browser before submitting to the server.
[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]