Complex HTML forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • George Sakkis

    #1

    Complex HTML forms

    I'd like to gather advice and links to any existing solutions (e.g.
    libraries, frameworks, design patterns) on general ways of writing
    complex web forms, as opposed to the typical {name:value} flat model.
    A particular case of what I mean by complex is hierarchical forms. For
    instance, a form that consists of a select list widget, where each
    item of the list activates a distinct set of other widgets. Think for
    example of a web frontend to CSV or SVN options and commands, where
    each command has its own suboptions. The suboptions are hidden (or
    even inexistent) until the user selects the specific command, and only
    then they appear (typically by Javascript). When the form is
    submitted, the selected options are passed in the server in some form
    that preserves the hierarchy, i.e. not as a flat dict. Is there
    anything close to such a beast around ?

    George

  • Paul Boddie

    #2
    Re: Complex HTML forms

    George Sakkis wrote:
    When the form is submitted, the selected options are passed in the server in some form
    that preserves the hierarchy, i.e. not as a flat dict. Is there anything close to such a beast around ?
    Yes, I have a framework called XSLForms which generates hierarchical
    field names when rendering XML documents using XSL-based templates;
    these field names are then interpreted in order to build XML documents
    based on the encoded hierarchy information. When these activities are
    successfully combined, the outcome is some kind of serialisation of
    XML data in Web forms.

    Take a look at the XSLTools distribution (which contains XSLForms):



    Using the framework is not as easy as I'd like it to be, but there are
    a few examples (as well as the code, of course) and that should give
    you some ideas.

    Paul

    Comment

    • Gregor Horvath

      #3
      Re: Complex HTML forms

      George Sakkis schrieb:
      I'd like to gather advice and links to any existing solutions (e.g.
      libraries, frameworks, design patterns) on general ways of writing
      complex web forms, as opposed to the typical {name:value} flat model.
      A particular case of what I mean by complex is hierarchical forms. For
      If You are searching for Oreo TV Apk Download it for Free. So you came to the right place Here, we provide the free latest version apk Download Link.



      --
      Greg

      Comment

      • Diez B. Roggisch

        #4
        Re: Complex HTML forms

        George Sakkis schrieb:
        I'd like to gather advice and links to any existing solutions (e.g.
        libraries, frameworks, design patterns) on general ways of writing
        complex web forms, as opposed to the typical {name:value} flat model.
        A particular case of what I mean by complex is hierarchical forms. For
        instance, a form that consists of a select list widget, where each
        item of the list activates a distinct set of other widgets. Think for
        example of a web frontend to CSV or SVN options and commands, where
        each command has its own suboptions. The suboptions are hidden (or
        even inexistent) until the user selects the specific command, and only
        then they appear (typically by Javascript). When the form is
        submitted, the selected options are passed in the server in some form
        that preserves the hierarchy, i.e. not as a flat dict. Is there
        anything close to such a beast around ?
        formencode, which is heavily used in TurboGears. The dynamic parts
        though you have to code yourself - but using mochikit, this is easy as
        cake...

        Diez

        Comment

        • George Sakkis

          #5
          Re: Complex HTML forms

          On Feb 18, 4:44 am, Gregor Horvath <g...@gregor-horvath.comwrot e:
          George Sakkis schrieb:
          >
          I'd like to gather advice and links to any existing solutions (e.g.
          libraries, frameworks, design patterns) on general ways of writing
          complex web forms, as opposed to the typical {name:value} flat model.
          A particular case of what I mean by complex is hierarchical forms. For
          >
          If You are searching for Oreo TV Apk Download it for Free. So you came to the right place Here, we provide the free latest version apk Download Link.

          >
          --
          Greg

          Thank you all for the helpful replies. ToscaWidgets seems particularly
          promising at a first glance, I'll look into it first.

          Best,
          George

          Comment

          Working...