General Interface is an open source project hosted by the Dojo Foundation

Native HTML Forms

The following options are supported to integrate your General Interface application with services that expect submissions via HTML forms:

  • jsx3.net.Form - This is a completely programmatic implementation of an HTML form. This class does not support file upload in Firefox due to a browser limitation.
  • jsx3.gui.NativeForm - This is a GI DOM implementation of an HTML form and so generally requires less JavaScript code than jsx3.net.Form. This class supports file upload (via POST) on all browsers.

jsx3.gui.NativeForm extends jsx3.app.Model so that it is part of the GI DOM. It is included in the Component Libraries palette (under Form Elements), and you can drag and drop it into your General Interface component. As with a native HTML form, form fields that are DOM children of a jsx3.gui.NativeForm become part of that form. When the form is submitted, all constituent fields are submitted with the form. The  NativeForm renders as a <form> element in HTML and most functionality is provided by the native browser implementation.

Contents

Searching General Interface Docs

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.