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.864.296 Times

OpenInteract2::Manual::Widgets 1.99_06

  Date Added: October 24, 2010  |  Visits: 736

OpenInteract2::Manual::Widgets

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



OpenInteract2::Manual::Widgets Perl module contains template widgets in OpenInteract. OpenInteract2 supports using templates as a simple graphical widget. A widget is a common element into which you can just plug in text or parameters to customize it. For example, an INPUT element of type TEXT is a particular type of widget -- you can customize its size, name, and default value. (Some widget implementations will maintain state for you across requests, have validation, etc. These dont do that.) Widgets can also include other widgets. Such as a row that uses the INPUT TEXT widget described above to create a labeled input field, with a label on the left and the input widget on the right. One of the main benefits of using these over HTML is centralization -- a change in one place enacts changes throughout your site. All column headers can look a certain way and be changed easily, all textboxes can be consistent and you can create widgets specific to your site and needs -- such as for inputting dates or money, or displaying addresses-- for a consistent user interface. Heres an example: [%######################################## form_text( name, value, size, maxlength, field_label ) Generate a simple text field. Defaults: size = 20 maxlength = 50 ########################################-%] [%- DEFAULT size = 20; DEFAULT maxlength = 50; -%] [%- field_pre_label -%] < input type="text" name="[% name %]" value="[% value %]" size="[% size %]" maxlength="[% maxlength %]" > [%- field_label -%] And you would reference this like: [% INCLUDE form_text( name = "batting_average", value = ".389" size = 5 ) -%] And when the template is processed, get in return: < input type="text" name="batting_average" value=".389" size="5" maxlength="50" > Calling widgets from other widgets is just as simple: [%######################################## label_form_text_row( label, count, name, value, field_label ) Display a row to input text: label on left, text input on right. Defaults: colspan = 2 ########################################-%] [%- DEFAULT colspan = 2; -%] [%- INCLUDE label_row_begin( colspan = 1 ) -%] [%- INCLUDE data_cell_begin %][% INCLUDE form_text %] < /td >< /tr > Here we call three separate items, two of which (label_row_begin and data_cell_begin) arent really widgets but rather just named areas for common code. This might be called: [% INCLUDE label_form_text_row( label = Batting Average, name = batting_average, value = .389, size = 5 ) -%] And result in: < tr valign="middle" > < td align="right" >< b >Batting Average< /b >< /td > < td align="right" > < input type="text" name="batting_average" value=".389" size="5" maxlength="50" > < /td > < /tr > And youre not restricted to simple fill-in elements either. You can represent a common data-oriented widget -- such as a drop-down box representing countries your company services -- in this manner as well. Heres how such a call might look: [%# Use USA as default, antagonizing the rest of the world...-%] [%- picked_country = user.country || United States -%] [% INCLUDE label_form_country_select( label = Countries, name = country, picked = picked_country ) -%] Using this, the page designer doesnt care how many countries the company services, whether a new one has been added to the list, etc. Just make the call and the graphic element will be created the same way every time. Using these template widgets you can build a library of display elements very quickly..

Requirements: No special requirements
Platforms: Linux
Keyword: Default Include Input Label Libraries Name Openinteract Perl Module Size Text Widgets Widgets Perl
Users rating: 0/10

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


OPENINTERACT2::MANUAL::WIDGETS RELATED
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  -  Perl::Critic::Config 1.061
Perl::Critic::Config is a Perl module to find and load Perl::Critic user-preferences. Perl::Critic::Config takes care of finding and processing user-preferences for Perl::Critic. The Config object defines which Policy modules will be loaded into...
245.76 KB  
Libraries  -  Devel::TraceLoad 0.07
Devel::TraceLoad is a Perl module to trace loadings of Perl Programs. # with perldb perl -d:TraceLoad script.pl # without perldb perl -MDevel::TraceLoad script.pl # without perldb and with options perl -MDevel::TraceLoad=after,path...
12.29 KB  
Libraries  -  Blatte 0.9.4
Blatte is a Perl module with text macro/markup/template language. SYNOPSIS use Blatte; use Blatte::Builtins; my $perl = &Blatte::Parse(...some Blatte program ...); if (defined($perl)) { my $result = eval $perl; if (defined($result)) {...
31.74 KB  
Libraries  -  ModPerl::PackageRegistry 0.02
ModPerl::PackageRegistry is a Perl module to map URIs to perl package namespaces. SYNOPSIS Apache: SetHandler perl-script PerlResponseHandler ModPerl::PackageRegistry PackageNamespace MyWebsite::pages PackageBase...
7.17 KB  
Libraries  -  Template::Ast 0.02
Template::Ast is a Perl module to process ASTs for Perl Template Toolkit. SYNOPSIS use Template::Ast; # Rebuild AST stored in file: $ast = Template::Ast->read(foo.ast) or die Template::Ast->error(); # Writing existing AST to file: $ast...
20.48 KB  
Libraries  -  Acme::EyeDrops 1.51
Acme::EyeDrops is a Perl module for visual programming in Perl. SYNOPSIS use Acme::EyeDrops qw(sightly); print sightly( { Shape => camel, SourceFile => eyesore.pl } ); Acme::EyeDrops converts a Perl program into an equivalent one, but...
102.4 KB  
Libraries  -  App::Modular 0.1.2
App::Modular is a Perl module with modularization framework for perl programs. SYNOPSIS package App::Modular::Module::Test; use base qw(App::Modular::Module); sub say_hello { print "Hello, dear user!"; }; package main; use...
16.38 KB  
Libraries  -  PDL::API 2.4.3
PDL::API is a Perl module for making piddles from Perl and C/XS code. A simple cookbook how to create piddles manually. It covers both the Perl and the C/XS level. Additionally, it describes the PDL core routines that can be accessed from other...
2.1 MB  
Libraries  -  ExtUtils::Embed 1.14
ExtUtils::Embed is a Perl module with utilities for embedding Perl in C/C++ applications. SYNOPSIS perl -MExtUtils::Embed -e xsinit perl -MExtUtils::Embed -e ldopts ExtUtils::Embed provides utility functions for embedding a Perl interpreter...
19.46 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