HTML-Tag
view release on metacpan or search on metacpan
- Added some other tests.
- If it's found a language that haven't a module available in namespace HTML::Tag::Lang::*, English (en) is now used instead of raise an error.
00.05 (2005/10/02)
- MONTH widget now use HTML::Tag::Lang for localized months name.
- Add a "permitted" method to MONTH.pm that show only months in the permitted arrayref and exclude all others.
- Add a "permitted" method to YEAR.pm that show only years in the permitted arrayref and exclude all others.
00.04 (2005/10/01)
- Add modules to support different language in HTML and javascript generated text.
- Add BOOLSELECT, a module to generate a YES/NO combobox.
00.03 (2005/09/27)
- Added strict and warnings directive to all modules.
00.02 (2005/09/27)
- In DATE.pm you can now combo and textbox to input date. If you press a digit key in the combo, it will be converted in a textbox form field.
- Converted HTML tags in lowercase.
- Changed tests to lowercase tags
- Added validation for day/month/year fields
- Added prerequisites for Class::Builder and Tie::IxHash.
- Add Changes file
NAME
HTML::Tag - Another HTML Widget system
SYNOPSIS
use HTML::Tag::Lang::en; # autolang using $LC_MESSAGES or $LANG ENV vars.
use HTML::Tag;
# This generate a YEAR combobox
my $year_field = new HTML::Tag(
element => 'YEAR',
name => $year_field_name,
selected => $year_to_select
)->html;
# This generate a YES/NO combobox with an empty string element for null value.
my $yesno_field = new HTML::Tag(
element => 'BOOLSELECT',
name => $bool_field_name,
selected => $yes_or_no,
maybenull => 1
)->html;
# This generate an advanced date control (see later)
my $date_field = new HTML::Tag(
element => 'DATE',
name => $date_field_name,
To have an idea of what kind of widgets are currently (1.00) available
let me describe the DATE widget.
This is a date control built with three combo (select) input field. With
these combos you can select day, month and year.
You can also select date by pressing a button that opens a popup
calendar (http://www.dynarch.com/projects/calendar/).
Another way, and this is great for me, is the ability to enter date
directly with keyboard. If you press a key the combobox becomes a
textbox and this give you the possibility to enter date with keyboard
After that, when you post the form, only an hidden field with the date
you set in the visible controls, has sent.
All these layouts (combo/textbox and hidden field) are alway syncronized
to have the same date value.
METHODS
To do.
=head1 NAME
HTML::Tag - Another HTML Widget system
=head1 SYNOPSIS
use HTML::Tag::Lang::en; # autolang using $LC_MESSAGES or $LANG ENV vars.
use HTML::Tag;
# This generate a YEAR combobox
my $year_field = new HTML::Tag(
element => 'YEAR',
name => $year_field_name,
selected => $year_to_select
)->html;
# This generate a YES/NO combobox with an empty string element for null value.
my $yesno_field = new HTML::Tag(
element => 'BOOLSELECT',
name => $bool_field_name,
selected => $yes_or_no,
maybenull => 1
)->html;
# This generate an advanced date control (see later)
my $date_field = new HTML::Tag(
element => 'DATE',
name => $date_field_name,
To have an idea of what kind of widgets are currently (1.00) available let me
describe the DATE widget.
This is a date control built with three combo (select) input field. With these
combos you can select day, month and year.
You can also select date by pressing a button that opens a popup calendar
(http://www.dynarch.com/projects/calendar/).
Another way, and this is great for me, is the ability to enter date directly
with keyboard. If you press a key the combobox becomes a textbox and this give
you the possibility to enter date with keyboard
After that, when you post the form, only an hidden field with the date you set
in the visible controls, has sent.
All these layouts (combo/textbox and hidden field) are alway syncronized to have
the same date value.
=head1 METHODS
( run in 1.183 second using v1.01-cache-2.11-cpan-8dfa8b56332 )