Skip to content
Hub Nexus

No author yetClaim it

Version 1Updated 1 min read

Support

Motivation

You have a very large form and your initial load times are very long. You want to be able to break a large form into multiple forms.

Method

To get the first part of a large form to load we will break the form into multiple parts and only load what appears to be the first tab of a multi-part form. When the user selects the second tab we will save all the data on the first tab and load the second tab. This way if the user want to only make a simple change to the form only the logic for a single tab needs to be loaded.

Example

We will use a series of triggers that are styled as file tabs. Each trigger will perform two actions: it will run a save submission and it will then load the next part of the form. The forms will be styled so that it will appear to the user they are just changing tabs.

Here is the sample code from each of the triggers:

appearance="minimal" class="tab2">
Part 2
ev:event="DOMActivate">
submission="save"/>
resource="edit-2.xhtml" show="replace"/>

Where this page came from

This page was imported from Wikibooks. From “XForms” on Wikibooks, by its contributors, under CC BY-SA 4.0. Changed here: set as a page; navigation and edit links left out; each image under its own licence, credited in its caption.

Nobody has written it yet — it is the source material at a new address, which is why search engines are asked to skip it and why no one earns from it. It is up for grabs: take it on, and it is yours to rewrite and to earn from.

Get each new page of

XForms

Following means one email when a page is added, nothing when a page changes.

Following means one email when a page is added, nothing when a page changes.

Comments

Spinner Logo

Next in XForms

CC BY-SA 4.0
The user can check any number of items on the left list and press the Move Right button to move these items to the right list. The user can also add any number of items on the right list and then by pushing the Move Left button, these items would be moved to the left list. Note that a "move" is tech
CC BY-SA 4.0
XForms, Queue Management
CC BY-SA 4.0
Background colors are used to show which tab is the currently selected tab.</p> </body> </html> ## Testing Note that the text under the selected tab changes when you click on the tab. ## Discussion One of the best ways to reduce your JavaScript is to start converting your menus to use XForms. This e
CC BY-SA 4.0
This tag is associated with the part of a web page that is specified by the label. For example you can append a label to a URL like the following: [ Note: This works only in CSS-3 and will not work under IE-6. Note that this example is very similar to the prior example but it uses a HTML anchor inst
CC BY-SA 4.0
XForms, Vertical Menu
CC BY-SA 4.0
id="review"> Review Strategy This provides a comprehensive review of the states defined within a given strategy. ) return $results ## Acknowledgments This example was posted by Kurt Cagle on XML Today.