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 29.635.868 Times

Javascript::Menu 2.02

  Date Added: August 10, 2010  |  Visits: 770

Javascript::Menu

Report Broken Link
Printer Friendly Version


Product Homepage
Download (77 downloads)



Javascript::Menu is a NumberedTree that generates HTML and Javascript code for a menu. SYNOPSIS use Javascript::Menu; # Give it something to do (example changes the menus caption): my $action = sub { my $self = shift; my ($level, $unique) = @_; my $value = $self->getValue; return "getElementById(caption_$unique).innerHTML=$value"; }; # Build the tree: my $menu = Javascript::Menu->convert(tree => $otherTree, action => $action); my $menu = Javascript::Menu->readDB(source_name => $table, source => $dbh, action => $action); my $menu = Javascript::Menu->new(value => Please select a parrot, action => $action); my $blue = $menu->append(value => Norwegian Blue); $blue->append(value => Pushing up the daisies); $menu->append(value => A Snail); # Or maybe you just want a navigational menu? my $menu = Javascript::Menu->new(value => Please select a prime minister); $menu->append(value => Ariel Sharon, URL => www.corruption.org/ariel_sharon.htm); $menu->append(value => Benjamin Netanyahu, URL => www.corruption.org/bibi.htm); $menu->append(value => Shaul Mofaz, URL => www.martial_law.org); # Print it out as a right-to-left menu: my $css = $menu->buildCSS($menu->reasonableCSS); print $cgi->start_html(-script => $menu->baseJS(rtl), -style => $css); #CSS plays an important role. print $tree->getHTML; Javascript::Menu is an object that helps in creating the HTML, Javascript, and some of the CSS required for a table-based menu. There are a few other modules that deal with menus, But as I browsed through them, I found that none of them exactly fitted my needs. So I designed this module, with the following goals in mind: Flexibility The main feature of this module is the ability to supply all nodes or any specific node with a subroutine that is activated in time of the code generation to help decide what the item will do when it is clicked. This allows customisation far beyond associating a link with every item. Multy-level selection menus become very easy to do (and this is, in fact, what I needed when I started writing this). I18n Working with i18n (internationalization) can be a big headache. Working with Hebrew (or Arabic) forces you not only to change your charachters, but also to change your direction of writing. I incorporated into this module the ability to produce right-to-left menus and tested it using a legacy ASCII-based encoding (iso-8859-8). Object Hierarchy I designed the module to work with two other modules of mine, Tree::Numbered and Tree::Numbered::DB, which simplify the task of building the menu and allow for construction of a menu from database information. The current version adds support for highlighting the item thats hovered over. Youll find that having made some preliminary steps, like tweaking the CSS to look the way you like it to, the rest is fairly easy..

Requirements: No special requirements
Platforms: Linux
Keyword: Action Append Code Code For Css Generates Html Javascript Javascript Code Javascriptmenu Libraries Menu Numberedtree Url Value
Users rating: 0/10

License: Freeware Size: 25.6 KB
USER REVIEWS
More Reviews or Write Review


JAVASCRIPT::MENU RELATED
Development Editors  -  VbCNet Code Parser For Html 1.0
VbCNet Code Parser For Html is a small, simple, easy to use application specially designed to help you convert .NET or C# code to HTML with just a press of the mouse. Basically this tool will convert your VB.net, C#.net Code to HTML code with...
 
Programming  -  phpSimpleDoc 58
PHP code documentor, for PHP object and non-object code. Generates HTML documentation from PHP source code and javadoc tags. User's guide, examples provided at http://phpsimpledoc.tig12.net
277.06 KB  
Productivity  -  Morse Code Lite 1.7.0.0
Morse Code Lite is a code application for transmitting, receiving and transcoding morse code, via text/character based transcoding or light transmission using the screen and sound. Its like the professional version but designed more for the casual...
1024 KB  
Development Editors  -  Free Colored ScrollBars 2.1
Free Colored ScrollBars is cool and powerful tool that creates CSS Style definitions and JavaScript code for amazing animated scrollbars needed to add colored scrollbars on your web pages. Free Colored ScrollBars comes with 44 color schemes...
1.45 MB  
Code Management Tools  -  Php Object Generator 3.0
Php Object Generator on short POG is an open source PHP code generator which automatically generates clean & tested Object Oriented code for your PHP4/PHP5 application. Over the years, we realized that a large portion of a PHP programmers time...
1024 KB  
Specialized Tools  -  Drop Down Menu in CSS and HTML 1.0
Create truly cross-browser, light-weight css drop down menu in minutes - try Drop Down Menu in CSS and HTML today! Drop Down Menu in CSS and HTML is a software tool that lets you add professional looking css drop down menu systems. With this html...
9.02 MB  
Development Editors  -  RISE AJAX code generator 4.4
The RISE AJAX code generator renders JavaScript source code, that uses jQuery, for accessing your JSON enabled web services in your Rich Internet Applications or AJAX applications. The source code from the code generator is compliant with any JSON...
 
Programming  -  LifeGen - A code generator for liferay 1.0
A eclipse plugin code generator for liferay with spring MVC in web layer and using spring as business layer. This is a simple tool which would reduce the redundant effort of liferay portlet XML updation, controller and preference JSP page generation.
72.41 KB  
Libraries  -  wwtxt 1.11
Parsing XML and CSS data is rather simple, but most libraries that aim for this simple goal are bloated with a whole lot of other irrelevant additions. The wwtxt library is a very minimalistic library containing just the required parsers (and...
46.08 KB  
Libraries  -  Inline::Filters 0.12
Inline::Filters Perl module contains common source code filters for Inline Modules. Inline::Filters provides common source code filters to Inline Language Modules. Unless youre an Inline module developer, you can just read the next section....
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
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...
2.73 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