CGI::Explorer 2.07 review

Download
by rbytes.net on

CGI::Explorer is a class to manage displaying a hash tree of data, for use in CGI scripts. Synopsis Install /assets/css/explore

License: Perl Artistic License
File size: 31K
Developer: Ron Savage
0 stars award from rbytes.net

CGI::Explorer is a class to manage displaying a hash tree of data, for use in CGI scripts.

Synopsis

Install /assets/css/explorer/xtree.css, /assets/js/explorer/xtree.js, and /assets/images/explorer/*, as per the installation instructions, below.
Then run the demos example/bootstrap-hobbit.pl, which creates a database table using DBIx::Hash2Table, and then example/hobbit.cgi, which reads a database table using DBIx::Table2Hash.
Or, more simply, run example/hobbit-hash.cgi which has the same hash directly in the source code.

CGI::Explorer is a pure Perl module.

It is a support module for CGI scripts. It manages a hash, a tree of data, so that the script can display the tree, and the user can single-click on the [+] or [-] of a node, or double-click on the icon of a node, to open or close that node's sub-tree.

Opening a node reveals all children of that node, and restores their open/closed state.
Closing a node hides all children of that node.

When you click on the text of a node, the node's id is submitted to the CGI script via the path info of the URL attached to that node. This path info mechanism can be overridden.
The id is assigned to the node when you call the method hash2tree(), which is where the module converts your hash into JavaScript.

Neither the module CGI.pm, nor any of that kidney, are used by this module.

Requirements:
Perl

CGI::Explorer 2.07 keywords