Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.199.219 Times

AxKit::XSP::PerForm 1.83

  Date Added: September 06, 2010  |  Visits: 676

AxKit::XSP::PerForm

Report Broken Link
Printer Friendly Version


Product Homepage
Download (99 downloads)



AxKit::XSP::PerForm is an XSP Taglib for making complex forms easy. SYNOPSIS AxAddXSPTaglib AxKit::XSP::PerForm PerForm is a large and complex taglib for AxKit XSP that facilitates creating large and complex HTML, WML, or other types of data-entry forms. PerForm tends to make life easier for you if your form data is coming from different data sources, such as DBI, or even XML. PerForm works as an XSP taglib, meaning you simply add some custom XML tags to your XSP page, and PerForm does the rest. Well, almost... PerForm works mainly by callbacks, as you will see below. EXAMPLE FORM Ignoring the outside XSP and namespace declarations, assuming the prefix "f" is bound to the PerForm namespace: < f:form name="add_user" > First name: < f:textfield name="firstname" width="30" maxlength="50"/ > < br / > Last name: < f:textfield name="lastname" width="30" maxlength="50"/ > < br / > < f:submit name="save" value="Save" goto="users.xsp" / > < f:cancel name="cancel" value="Cancel" goto="home.html" / > < /f:form > Now it is important to bear in mind that this is just the form, and alone it is fairly useless. You also need to add callbacks. Youll notice with each of these callbacks you recieve a $ctxt object. This is simply an empty hash-ref that you can use in the callbacks to maintain state. Actually "empty" is an exhageration - it contains two entries always: Form and Apache. "Form" is a simply a hashref of the entries in the form (actually it is an Apache::Table object, which allows for supporting multi-valued parameters). So for example, the firstname below is in $ctxt-{Form}{firstname} >. "Apache" is the $r apache request object for the current request, which is useful for access to the URI or headers. sub validate_firstname { my ($ctxt, $value) = @_; $value =~ s/^s*//; $value =~ s/s*$//; die "No value" unless $value; die "Invalid firstname - non word character not allowed" if $value =~ /W/; } sub validate_lastname { return validate_firstname(@_); } sub submit_save { my ($ctxt) = @_; # save values to a database warn("User: ", $ctxt->{Form}{firstname}, " ", $ctxt->{Form}{lastname}, "n"); } Now these methods need to be global to your XSP page, rather than "closures" within the XSP pages main handler routine. How do you do that? Well its simple. Just put them within a < xsp:logic > section before any user defined tags. For example, if your XSP page happens to use XHTML as its basic format (something I do a lot), your page might be constructed as follows (namespace declarations omitted for brevity): < xsp:page > < xsp:logic > ... form logic here ... < /xsp:logic > < html > < head >< title >An Example Form< /title >< /head > < body > < h1 >An Example Form< /h1 > < f:form > ... form definition here ... < /f:form > < /body > < /html > < /xsp:page > [Note that the page-global methods is a useful technique in other situations, because unlike Apache::Registry scripts, this wont create a closure from methods defined there]..

Requirements: No special requirements
Platforms: Linux
Keyword: Axkit Axkitxspperform Complex Complex Forms Firstname Form Libraries Name Perform Programming Taglib Value Xsp Xsp Taglib
Users rating: 0/10

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


AXKIT::XSP::PERFORM RELATED
Programming  -  The Complex Language 0.1
The Complex Language project is an object oriented programming language intended for scripting or rapid prototyping of applications. The design goals were to have very few simple but powerful concepts and to be easy to use and easy to learn. The...
133.12 KB  
Libraries  -  Blitz++ 0.9
The C++ programming language offers many features useful for tackling complex scientific computing problems: inheritance, polymorphism, generic programming, and operator overloading are some of the most important. Unfortunately, these advanced...
3.1 MB  
Development Tools  -  wForms 2.0
wForms is an open-source, unobtrusive javascript library that adds commonly needed behaviors to traditional web forms without the need for any programming skill.The code is compatible with all modern web browsers and can be easily implemented into...
 
Modules  -  Hotkey 5.x-2.2 1.0
Given a specific form button name (with an optional Drupal form element id) and a specified key, Hotkey will add the HTML accesskey element to every Drupal form button that meets this criteria.This is useful for accessing commonly used form...
 
Programming  -  devkitPro 1.5.7
This project is for homebrew console development tools based on the gnu compiler collection with additional tools and libraries to aid programming each supported console. The windows variants are built with MinGW.
444.26 KB  
Form Processors  -  Form Dependency Manager 1.1
This is a form dependency script for shuttling the display of fields within a complex form, where the visibility of a form field should depend on the value and/or state of another. It's not meant to replace server side scripting for dictating what...
102.4 KB  
Form Fillers  -  Online Vault 1.0.0.61
Online Vault is a free application that makes logging into websites and filling in Web forms faster, easier, and more secure by eliminating the need to enter information manually. A Password Manager and Web Form Filler are uniquely combined to...
3.05 MB  
Network & Internet  -  Contact Form Killer 1.4
Contact Form Killer is a free tool you can use to generate contact forms for your site, or let your web site visitors add contact forms themselves. Contact Form Killer script takes care of messy form validation with both JavaScript and PHP, just...
12.29 KB  
Modules  -  Form Tooltips 6.x-1.2-alpha1
Converts form-item help text into javascript tooltips. The dev version now features form-id based tool tip activation (for any tag with class "description"). There are some issues however, because it will apply to all forms on a page, rather than...
10 KB  
Modules  -  Custom Contact Forms 5.x-1.x-de
The module allows site admins to create customized contact forms.Contact forms also can be created by other modules using the provided API.Contact form title, default message, description text,message subject and body are fully customizable and...
10 KB  
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