Running The Complete UI Demos

Demos for all of the Nitobi Complete UI components are included with the Complete UI SDK. For most of the components, you simply need to open the appropriate HTML file in a web browser. If your browser is not configured to allow script access for local files, you can either move the samples to a directory accessible to a local web server, or configure your local web server to use the samples directory as a virtual directory. Please consult the documentation for the web server you're using to see how this is done.

Some of the demos for the Grid, TreeGrid, ComboBox and Tree depend upon data from a database to update their content dynamically. For the Classic ASP and ColdFusion demos, some Microsoft Access (mdb) database files are included - the demos are set up to access these correctly. Just ensure that your web server is correctly configured to execute ASP or CFM scripts.

If you wish to run the PHP demos, you will want to set up some datatables in MySQL first. There is a sample SQL file called NitobiSampleDatabases.sql included in the root directory of the samples. Execute the contents of this SQL file to populate the Nitobi demo tables. You will then need to change the database connection strings in each of the PHP files the demo uses (load_data.php, save_data.php, lookuphandler.php, getnextrecord.php, etc). Look for the following part of the code:

mysql_connect() or die(mysql_error());
mysql_select_db("nitobi_testdb_v1") or die(mysql_error());

And edit the mysql_connect() call so that it connects to your instance of MySQL correctly.

page revision: 0, last edited: 1226355274|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License