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

Javascript::Menu 2.02

  Date Added: August 10, 2010  |  Visits: 1.543

Javascript::Menu

Report Broken Link
Printer Friendly Version


Product Homepage
Download (84 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
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  
WYSIWYG HTML Editors  -  CSS Menu Bar 1.0
Build modern web buttons and css menu bars for your web in a few clicks! No working around with the raw CSS or HTML code is necessary. The html menu builder does all the work for you. Just enter the information you want for your html menu in this...
10.26 MB  
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  -  ASP String Component 1.0
ASP String Processing Component - Parsing, RFC 822 and RFC 3339 Date/Time Conversion, Encoding/Decoding for Base64, Hex, HTML Entities, URL-encoded, Quoted-Printable, Unicode Language Detection, Charset Encoding Conversion, Pluralize/Unpluralize,...
276.48 KB  
Business  -  mkDoxy 1.0.0
mkDoxy is a small tool that generates HTML documentation from Makefiles. mkDoxy is to makefiles what Doxygen is to source files: it parses a makefile and produces HTML documentation of available targets and macros. Only comments starting with...
10.24 KB  
Network & Internet  -  mkhindex0.20(2006-10-29)
mkhindex project generates HTML directory listings like the "Option Indexes" functionality of Apache. Other than the Web server, these listings are static. They greatly increase the performance of the Web server if you use it as a file server....
174.08 KB  
Programming  -  Include Code 1.0
Making web pages without any HTML frames is a must for all good websites today but, when doing menus in pure CSS and HTML, you end up with the very old problem - code for menus has to be embedded in each web page you create. Changing something in...
175 KB  
Modules  -  Flexi Custom Code 1.0
This module allows us to insert any code like php, javascript PHP, CSS and html at site modules positions. For example, It's can be used for simple code, simple function, embed code, adsense code, affiliation code and others copy and paste codes...
10 KB  
HTML Utilities  -  SmartCSS 1.6
SmartCSS is an HTML export extension for Adobe Fireworks which allows you to simply design your web-page in Adobe Fireworks CS3 and generate usable production ready CSS and HTML code. This means you can avoid the extra time and effort required to...
30.72 KB  
Miscellaneous  -  Head generator 1.0
It takes as parameters optional values for page meta-tags, CSS styles and Javascript code. The start of the HTML document that contains the specified head parameters is being generated. Requirements: - PHP 3.0 or higher
 
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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 4.0.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...
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