How to install: Basicly there are 3 parts (besides downloading); 1. Including and configuring the crudder-library (configuring can be done by altering just 2 lines) 2. Inserting the javascript-libraries (1 line), inserting a container (also; 1 line) and call the javascript library (from an onlick/onload-event, also 1 line) on your website 3. Creating table-definition(s) Let's start: - Check the following: - You have PHP5 running on Apache (preferably on a linux/unix-box, windows is still untested) - PHP5 has been compiled with/has loaded: - DOM-module - XSL-t-module - Register Globals is OFF (could produce strange behaviour if register_globals is on) - Download the latest release (0.10 at time of writing) from www.crudder.net and unzip it preferably in a include- of library directory. - Include crudder/includes.php somewhere at the top of your page - Edit crudder/index.php : - set the CRUDDER_ROOT to the absolute location where you've put the crudder-libraries - set CRUDDER_DEFINITION_ROOT to the location where you've placed the configuration-files - Insert the javascript-libraries in the head of your page by calling: - Setup the table-definition-file, see configurationExamples-directory for some examples of table-definitions-files - Create a container for crudder in the body of your page, ie:
- Start the crudderController (javascript): new crudderController(htmlElement->container, crudder-definition-file, Relative path to crudder/index.php);" either by assigning an event: or on page-load (in the head-tag of your page): That's it! You're done! Troubleshooting: Crudder is an AJAX-application, debugging AJAX in MSIE is a PIA. You're recommended to use Firefox 3 / 3.5 and Firebug for debugging. If you run into problems; check the paths to the libraries.