Kaya 0.5.2 reference for HTMLDocument::addRemoteForm

List of functions and data types in HTMLDocument

ElementTree addRemoteForm(ElementTree parent, String action, FormType method)

Arguments

Usage

This adds a form that points to a specified URL. Unless the other URL is a (byte for byte) identical copy of the current application, you will not be able to use Kaya's special state handling, and must construct another way of passing the information. If the security of the information is not critical, and the other application is also a Kaya application, then the Pickle module may be of use.

form = addRemoteForm(doc.body,
                     "http://www.example.com/email.cgi",
                     FormPost);

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