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

AxKit::XSP::PerForm 1.83

  Date Added: September 06, 2010  |  Visits: 496

AxKit::XSP::PerForm

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 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
Form Processors  -  phpFormBuilder 1.11
phpFormBuilder includes a web interface for administering complex, validated forms, and for storing and/or emailing form results. Forms can be deployed in any PHP page with a simple include line. It uses mySQL.
 
Education  -  CubicEquationSolver 1.0.0.0
This application is a cubic equation solver which solves all types of cubic equations.It even solves the cubic equation for imaginary numbers and gives out the complex roots in the form of iota as the result. This application overcomes the...
1024 KB  
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  
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  
Libraries  -  jsVal 1.3.4
jsVal is a JavaScript form validation framework. jsVal is a JavaScript program used for validating HTML Forms on the client side. This allows HTML forms to be validated in the browser without having to send a request to a sever (PHP, ASP,...
43.01 KB  
Content Management  -  Lanai for Scripts 0.6
Lanai is an extensible, OO (Object Oriented), easy to use dynamic web content management system written in PHP. Lanai is the ideal tool for developing small to large dynamic community websites, intra company portals, corporate portals, and much...
1.79 MB  
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  -  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