HTML::FormHighlight 0.03 |
Date Added: January 18, 2010 | Visits: 1.167 |
|
||||||||
HTML::FormHighlight Perl module can help you to highlights fields in an HTML form. SYNOPSIS use HTML::FormHighlight; my $h = new HTML::FormHighlight; print $h->highlight( scalarref => $form, fields => [ A, B, C ], ); print $h->highlight( scalarref => $form, fields => [ A, B, C ], highlight => *, mark => , all_in_group => 1, ); HTML::FormHighlight can be used to highlight fields in an HTML form. It uses HTML::Parser to parse the HTML form, and then places text somewhere before each field to highlight the field. You can specify which fields to highlight, and optionally supply a CGI object for it to check whether or not an input value exists before highlighting the field. It can be used when displaying forms where a user hasnt filled out a required field. The indicator can make it easier for a user to locate the fields that theyve missed. If youre interested in more advanced form validation, see HTML::FormValidator. HTML::FillInForm can also be used to fill form fields with values that have already been submitted. METHODS new() Create a new HTML::FormHighlight object. Example: $h = new HTML::FormHighlight; highlight() Parse through the HTML form and highlight fields. The method returns a scalar containing the parsed form. Here are a few examples: To highlight the fields A, B and C (form on disk): $h->highlight( file => form.html, fields => [ A, B, C ], ); To highlight the fields A and B with a smiley face (form as a scalar): $h->highlight( scalarref => $form, fields => [ A, B ], highlight =>, ); To highlight the fields A and B if they havent been supplied by form input (form as an array of lines): $q = new CGI; $h->highlight( arrayref => @form, fields => [ A, B ], fobject => $q, ); Note: highlight() will only highlight the first option in a radio or select group unless the all_in_group flag is set to a true value. Heres a list of possible parameters for highlight() and their descriptions: scalarref - a reference to a scalar that contains the text of the form. arrayref - a reference to an array of lines that contain the text of the form. file - a scalar that contains the file name where the form is kept. fields - a reference to an array that lists the fields to be highlighted. If used in conjunction with "fobject" or "fdat", only the fields listed that are empty will be highlighted. highlight - a scalar that contains the highlight indicator. Defaults to a red asterisk (< font color="#FF0000" size="+1" >< b >*< /b >< /font >). mark - a regex specifying where to place the highlight indicator. If this is empty, the indicator will be inserted directly before the form field. The HTML form does not need to contain the text specified in the regex before each form field. highlight() will only use a mark for a field if there is no other form field before the field its highlighting. If there is more than one mark before a field, it will only highlight the last mark. If it doesnt find a mark, it will insert the indicator directly before the form field.
|
License: Freeware | Size: 5.12 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 | |
Libraries
-
Graph::Writer::TGXML 0.01
Graph::Writer::TGXML is a Perl module used to write out directed graph as TouchGraph LinkBrowser XML. SYNOPSIS use Graph; use Graph::Writer::TGXML; $graph = Graph->new(); # add edges and nodes to the graph $writer =... |
4.1 KB | |
Libraries
-
GPS::Lowrance 0.31
GPS::Lowrance is a Perl module connect to Lowrance and Eagle GPS devices. REQUIREMENTS The following modules are required to use this module: Carp::Assert GPS::Lowrance::LSI 0.23 Parse::Binary::FixedFormat Win32::SerialPort or... |
22.53 KB | |
Libraries
-
fields::aliased 1.05
fields::aliased is a Perl module that can create aliases for object fields. SYNOPSIS package MyPackage; use strict; use fields qw($scalar @array %hash); sub new { my $class = shift; my $self = fields::new($class); return $self; }... |
8.19 KB | |
Libraries
-
HTML::WikiConverter::MediaWiki 0.55
HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => MediaWiki ); print $wc->html2wiki( $html ); This module contains rules... |
11.26 KB | |
Libraries
-
Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just... |
10.24 KB | |
Libraries
-
OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius.. |
3.07 KB | |
Network & Internet
-
MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an... |
16.38 KB | |
Libraries
-
Locale::Maketext::Extract 0.62
Locale::Maketext::Extract is a Perl module used to extract translatable strings from source. SYNOPSIS my $Ext = Locale::Maketext::Extract->new; $Ext->read_po(messages.po); $Ext->extract_file($_) for ; # Set... |
83.97 KB | |
Libraries
-
MIME::EncWords 0.040
MIME::EncWords is a Perl module created to deal with RFC-1522 encoded words (improved). SYNOPSIS MIME::EncWords is aimed to be another implimentation of MIME::Words so that it will achive more exact conformance with MIME specifications.... |
21.5 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
-
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 |