Java collapsable menu

A place for users and developers of the Xataface to discuss and receive support.

Java collapsable menu

Postby tomhousley » Tue Sep 01, 2009 6:18 am

Hello,

I have created a menu that lists the tables in use, and I want to be able to have these callapsable.

My ApplicationDelegate.php contains this:

Code: Select all
function block__before_left_column(){
    $app =& Dataface_Application::getInstance();
    $tables =& $app->_conf['_tables'];
echo "<h2>Sections</h2>";
    foreach ( $tables as $name=>$label){
   echo "<li><ul><a href="."index.php?-table=".$name.">".$label."</a></ul></li>
";
    }
}


I would like somehow to be able to click on the 'Sections' text and have it show or hide the list of tables below.

I'm out of my depth with javascript, so any help would be great.

Many thanks, Tom
tomhousley
 
Posts: 52
Joined: Thu Feb 26, 2009 1:02 am
Location: United Kingdom

Postby shannah » Tue Sep 01, 2009 6:34 pm

shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved