Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.404.067 Times

HTML::Widget::SideBar 1.02

  Date Added: September 23, 2010  |  Visits: 918


Report Broken Link
Printer Friendly Version

Product Homepage
Download (74 downloads)

HTML::Widget::SideBar can creates the HTML (and possibly some Javascript) for a navigational or otherwise active (hierarchical) sidebar for a web page. SYNOPSYS use HTML::Widget::SideBar; use CGI; # Or something like that. # We are going to create a sidebar in which only the active (clicked) branch # is visible. my $tree = HTML::Widget::SideBar->new; $tree->setToggleAction; foreach (1..3) { my $list = $tree->append(value => "list$_"); $list->append(value => "aaa$_", URL => "http://localhost/$_"); $list->append(value => "bbb$_"); $list->append(value => "ccc$_"); } $tree->getSubTree(3)->setActive; print header, start_html(-style => $tree->buildCSS($tree->deepBlueCSS), -script => $tree->baseJS); print join "n", $tree->getHTML(styles => {bar => nav, level0 => navlink, level0Over => navover}, expand => 1 ); print end_html; HTML::Widget::SideBar creates the HTML, and possibly some Javascript and CSS for a hirarchical side menu bar. It is very flexible, and allows you to create both simple navigational menus and complex dynamic sidebars with Javascript actions associated with items on the menu. This module started as a hack on my Javascript::Menu, which makes them very similar, so if you got one of them, youll use the other with no sweat, I think. The module supports the notion of an active item (usually the item denoting the page the user is viewing) and gives such item special treatment by marking it with a special CSS class and making it visible initially. It also has special support for selection menus where opening a branch closes all others. What should you expect to see? This depends greatly on your style definitions and action assignment (if you use that feature). Basically youll have a vertical bar (which will take up as much of the screen as your CSS will allow). Inside that bar youll have a tree of nested lists, and you can define the style for each level. When an item is clicked - its action is performed. A special predefined action allows you to show/hide child lists. By default only the active branch (the branch containing the active item) and the top level list will be visible. You can override this (see getHTML). Some naming rules The sidebar will get an HTML id attribute. The default is sidebar but this is changeable through getHTML, as other naming rules. Every list will be of class list unless another class is given through getHTML. Every item in every list will be of the same class as all other items on the same level. The default is item for all items, but you can set each level separately through getHTML. The active items class name is its levels class name, appended with Active. Optionally, you may also set a mouseover style. For those of you who design for Mozilla, you really dont need that, just use the CSS pseudo-class :hover. For others, this will set the onMouseOver and onMouseOut attributes of an item to switch to and from that class. Setting up the supporting code. The sidebar created by this menu is formatted by CSS only. This means youll have to supply it. I included a class method called buildCSS which takes a datastructure (described below) and turns it into CSS, and an example of a sidebar design in such datastructure (I used this design in production). You may also want to use the toggling support (described below), and in this case youll need some Javascript. This is given directly through baseJS. You can use it straight or dump to a file and tweak it to suit you best..

Requirements: No special requirements
Platforms: Linux
Keyword: Active Class Css Html Htmlwidgetsidebar Item Libraries List Programming Sidebar Youll
Users rating: 0/10

License: Freeware Size: 15.36 KB
Development Editors  -  Komodo Edit (Mac OS X/PowerPC) 5. 2. 2004
Komodo Edit is a free, open source, multi-platform, multi-language editor for dynamic languages and Ajax technology, including Perl, PHP, Python, Ruby and Tcl; plus support for browser-side code including JavaScript, CSS, HTML and XML. Background...
40.74 MB  
Libraries  -  Tree::Simple::View::HTML 0.16
Tree::Simple::View::HTML is a Perl class for viewing Tree::Simple hierarchies in HTML. SYNOPSIS use Tree::Simple::View::HTML; ## a simple example # use the defaults (an unordered list with no CSS) my $tree_view =...
22.53 KB  
Development Tools  -  Mollio CSS/HTML Templates 1.1
Mollio is a simple set of html/css templates. The aim was to create a set of page templates that use css for layout as well as some sample basic content which has also had some css applied. It's definitely a work in progress. More sample content...
296.96 KB  
Modules  -  Active Link Filter 6.x-1.0
This is a non-caching filter that parses HTML to append an active class to URL's found in the content if they match the current page.This filter does not cache, limit it's usage to fairly small blocks! Also it should come after all other input...
10 KB  
Libraries  -  Syntax::Highlight::HTML 0.04
Syntax::Highlight::HTML is a Perl module to highlight a HTML syntax. SYNOPSIS use Syntax::Highlight::HTML; my $highlighter = new Syntax::Highlight::HTML; $output = $highlighter->parse($html); If $html contains the following HTML fragment:...
16.38 KB  
Development Editors  -  RadRails
Everything you Need for Rails Development Build, deploy and scale Ruby on Rails apps faster using Aptana RadRails and Aptana Cloud, both of which extend Aptana Studio's unprecedented ease for JavaScript, DOM, HTML, CSS, and popular Ajax...
1024 KB  
Education  -  Html Class 1.40
Gain a mastery of Html, extend your html knowledge or get to know about Html5! This app features: - a reference section with some articles explaining the html basics and a list including all html4 tags, together with an explanation of...
4.8 MB  
Miscellaneous  -  HTML to Plain Text Conversion 1.0.0
This class converts HTML to plain, formatted ASCII text.By default, the text is wrapped to 70 characters, and some basic formatting is applied to preserve some of the HTML formatting. Usage
Productivity  -  WHIST LIST
Version 1.3 Compiled to work well with copy and paste OS update Version 1.2 Fixes issue with editing existing list item. Whist List (Where Have I Seen That?) is not your normal list application. With Whist List you can not only make...
1024 KB  
Development Tools  -  Automatic HTM documentation 1.0
It will automatically produce documentation in HTML format from a list of .m files within a folder. Requirements: - MATLAB 7.6 or higher
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB