PHP Classes

File: README.FIRST

Recommend this page to a friend!
  Classes of Jacek Lukasiewicz   jQueryUI PHP wrapper   README.FIRST   Download  
File: README.FIRST
Role: Documentation
Content type: text/plain
Description: README FILE
Class: jQueryUI PHP wrapper
Generate HTML for pages using jQuery UI widgets
Author: By
Last change: update
Date: 12 years ago
Size: 1,228 bytes
 

Contents

Class file image Download
This set of classes allows you to easily use jQuery UI widgets using PHP without the use of JavaScript. This Class allows you to create widget with default parameters. For example, simply create a slider: $slider = UiWidget::getWidget('slider'); Allows you to define options for each of them: $slider->setOption('max', 50); $slider->setOption('value', 30); It is also possible to use the events offered by each of the widgets: $slider->addEventHandler('slide', 'slideHndlr'); //where 'slide' is widget event and 'slideHndlr' your JS function $slider->addEventHandler('stop', 'stopHndlr'); ... and methods: $slider->runMethod('disable'); To display the widget you just write: echo $ slider and ready:) This Class package requires jquery-ui-1.8 Please download the jquery-ui from http://jqueryui.com/download Then put the files in the ./css and ./js directories and possibly modify the paths to the your css and js files in the example file index.php For example: <link href="css/ui-lightness/jquery-ui-1.8.12.custom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.5.1.min.js"> </ script> <script type="text/javascript" src="js/jquery-ui-1.8.12.custom.min.js"> </ script>