Welcome to Gizmo(QP)

Gizmo(QP) is an extension of the QP Web Framework, aiming to make interface-rich web applications more manageable.

Menu
  • Home
  • Documentation
    • Hello World
    • Hello Pluto
    • Dhi 
    • Gizmos
    • Gizmo Form
    • Unburdened Page
    • Access Control
    • Templating
    • Site Configuration
  • Demo
  • Download

Gizmo Form

Gizmo Form

The Gizmo Form module supports redundant client-side field validation as well as an additional json callback for a field (when the field’s validation logic requires server-side business logic or data). Under Gizmo Form, all QP Form and QP Widget instances become also gizmos, while retaining all of their QP-ness, to facilitate a richer client-side behaviour. A by-product of Gizmo Form is a simplified JavaScript version of the spec generic python validation module.

An example

The demo registration form is a prepared simple example of a Gizmo Form, demonstrating:

  • the behaviour of the form — try filling out all the required fields, and in particular the Username
  • the server-side definition in python of the form (the source is inlined in the page for convenience)
  • the resulting automatically generated client-side javascript code (do view page source) — client-side validation tests are redunadant, as every one of them is guaranteed to be also performed on the server every time the form is submitted.

More Information

  • the Comprehensive Demo
  • the module: gz.gizmo.gform

Categories

  • Data
  • Uncategorized
  • Writing Help

Archives

  • January 2023
  • September 2022
  • July 2022
  • May 2022
  • December 2021
  • February 2020
  • January 2020
  • November 2019
  • September 2019
  • June 2019
  • April 2019
  • March 2019
February 2023
M T W T F S S
« Jan    
 12345
6789101112
13141516171819
20212223242526
2728  

© Welcome to Gizmo(QP) 2023. Powered by WordPress