Play! Documentation

play.js

The play/resource/play.js javascript file provides some handy, easy-to-use functionality in two forms: special classes that automatically trigger javascript when detected, and a handful of very useful functions for using ajax to load content.

The Play Library's javascript features require jQuery. JQuery is a free, javascript library that can be included directly from google's site and operates behind the scenes without your intervention. The default web content includes jQuery in this way.

Play Library javascript is intended strictly to enhance the operation of PHP features. There is no PHP feature that will fail to operate in the absense of javascript. There are also many javascript features that serve to enhance user experience and reduce server load, but if implemented properly the absence of javascript will not be noticeably visible.

Classes

This section lists HTML Classes that automatically trigger useful javascript features when jQuery and the play.js script are included in the HTML head section:

Functions

This section lists javascript functions implemented in the play.js file.