Peter Gordon > JQuery > JQuery::ClickMenu

Download:
JQuery-1.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  0
View/Report Bugs
Module Version: 1.00   Source  

NAME ^

JQuery::ClickMenu - A clickable menu

VERSION ^

Version 1.00

SYNOPSIS ^

JQuery::ClickMenu is a desktop style menu.

    use JQuery;
    use JQuery::ClickMenu ; 
 my $list =<<EOD;
 File(f)
  Menu1
  sep(s)
  Menu2
 Options(f)
  Menu1
  sep(s)
  Menu2
  SubMenu(f)
   Submenu1
   Submenu2
 EOD

 my $clickmenu = JQuery::ClickMenu->new(list => $list, 
                                  id => 'myclickmenu',
                                  headerMenu => 1,
                                  separator => '/',
                                  addToJQuery => $jquery,
                                  rm => 'MyClickMenu',
                                  remoteProgram => '/cgi-bin/jquery_clickmenu_results.pl') ; 
 my $html = $clickmenu->HTML ;
 my $html = $tree->HTML ;

DESCRIPTION ^

ClickMenu displays a menu in desktop format

The simplest way to present the data is in the format shown above. Each indentation represents another level. The letters in brackets stand for

f

A folder or node

s

A separator line between items

list

The list in the format show above

id

The css id of the element

separator

When an item is pressed, the it and all ancestors are concatenated and sent to the calling program. The item called 'data' contains just the data as shown at the leaf or node. 'path' gives the whole path, each element being separated by the separator.

In other words, you might get data=myfile, and path=dir/dir1/dir2/myfile

addToJQuery

The JQuery container

rm This is the runmode to be used when running an external program
remoteProgram This is the name of the remote program to be used when an item is pressed.
headerMenu

Sets the menu flush at the top with the following css:

        position: fixed;
        top: 0;
        border: 0;
        width: 100%;

FUNCTIONS ^

new

Instantiate the object

HTML

Produce the HTML code

HTMLControl Produce the HTML code for the control

AUTHOR ^

Peter Gordon, <peter at pg-consultants.com>

BUGS ^

Please report any bugs or feature requests to bug-jquery-taconite at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=JQuery. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc JQuery

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2007 Peter Gordon, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: