.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.addStateFields" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::addStateFields \- Call a CGI function .SH "SYNOPSIS" .B Void addStateFields( \fIElementTree parent, Void(a) fn, a state\fP .B ")" .SH "ARGUMENTS" .PP .B "parent" The parent element .PP .B "fn" The function to call .PP .B "state" The state to pass to the function .SH "DESCRIPTION" .PP Adds the state and processing function variables to a block-level element within a form created with .B "HTMLDocument.addLocalForm"(3kaya) This function only works with the .BR "CGI(3kaya)" state handling model, and is equivalent to using .B "CGI.formHandler"(3kaya) for non-HTMLDocument CGI programs. .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .BR "CGI(3kaya)" .PD 0.4v