Kaya 0.5.2 reference for HTMLDocument::addLocalForm

List of functions and data types in HTMLDocument

ElementTree addLocalForm(ElementTree parent, Bool fileupload=false)

Arguments

Usage

This adds a form that points to the current web application to call a named function. You then need to use addLocalControlInput to choose the function to call.

If you are using mod_rewrite in Apache, or other methods of rewriting URLs at the webserver level, then you may need to call setAttribute(form,"action",rewritten), as Kaya cannot know about this URL rewriting layer.

Note that in HTML form input controls may not be placed directly inside a form - you must add block-level elements to the form and add controls to those elements. The fieldset element is especially suited to this and the addFieldset function handles this.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya