DBIx-HTML-LinkedMenus
view release on metacpan or search on metacpan
{
"abstract" : "Convert SQL to 2 linked HTML popup menus",
"author" : [
"Ron Savage (ron@savage.net.au)"
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 7.58, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
---
abstract: 'Convert SQL to 2 linked HTML popup menus'
author:
- 'Ron Savage (ron@savage.net.au)'
build_requires:
ExtUtils::MakeMaker: '0'
Test::More: '1.001014'
Test::Pod: '1.48'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 7.58, CPAN::Meta::Converter version 2.150010'
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my(%params) =
(
($] ge '5.005') ?
(
'AUTHOR' => 'Ron Savage (ron@savage.net.au)',
'ABSTRACT' => 'Convert SQL to 2 linked HTML popup menus',
) : (),
clean =>
{
FILES => 'blib/* Makefile MANIFEST DBIx-HTML-LinkedMenus-*'
},
dist =>
{
COMPRESS => 'gzip',
SUFFIX => 'gz'
},
lib/DBIx/HTML/LinkedMenus.pm view on Meta::CPAN
} # End of size.
# -----------------------------------------------
1;
__END__
=head1 NAME
C<DBIx::HTML::LinkedMenus> - Convert SQL to 2 linked HTML popup menus.
=head1 Synopsis
use DBIx::HTML::LinkedMenus;
my($linker) = DBIx::HTML::LinkedMenus -> new
(
dbh => $dbh,
base_sql => 'select campus_id, campus_name, campus_id ' .
'from campus order by campus_name',
lib/DBIx/HTML/LinkedMenus.pm view on Meta::CPAN
You would normally do something like this:
my($base_id) = $q -> param('dbix_base_menu') || '';
my($link_id) = $q -> param('dbix_linked_menu') || '';
my($linker) = ...
my(@value) = $linker -> get($base_id, $link_id);
=item html_for_base_menu()
Returns the HTML for a popup menu named after the base_menu_name parameter.
Output it somewhere suitable on your page.
Calling this method and outputting the HTML is mandatory.
=item html_for_linked_menu()
Returns the HTML for a popup menu named after the linked_menu_name parameter.
Output it somewhere suitable on your page.
Calling this method and outputting the HTML is mandatory.
=item javascript_for_db()
Returns JavaScript, including the <script>...</script> tags, which holds your data in a
JavaScript db, and includes some JavaScript functions.
( run in 2.768 seconds using v1.01-cache-2.11-cpan-364913b4093 )