1HTMLDocument.addLocalForm(3kayKaa)ya module refereHnTcMeLDocument.addLocalForm(3kaya)
2
3
4

NAME

6       HTMLDocument::addLocalForm - Add a form for the current application
7

SYNOPSIS

9       ElementTree addLocalForm( ElementTree parent, Bool fileupload=false )
10

ARGUMENTS

12       parent The parent element
13
14       fileupload  Does this particular form allow file uploads. This argument
15       can be omitted, for a default of disallowing them.  Note  that  WebCom‐
16       mon.allowFileUploads  (3kaya)  must  also be called for this to be suc‐
17       cessfully enabled.
18

DESCRIPTION

20       This adds a form that points to the current web application to  call  a
21       named  function. You then need to use HTMLDocument.addLocalControlInput
22       (3kaya) to choose the function to call.
23
24       If you are using mod_rewrite in Apache, or other methods  of  rewriting
25       URLs  at  the  webserver  level,  then  you  may  need  to  call setAt‐
26       tribute(form,"action",rewritten) , as Kaya cannot know about  this  URL
27       rewriting layer.
28
29       Note that in HTML form input controls may not be placed directly inside
30       a form - you must add block-level elements to the form and add controls
31       to  those  elements.  The fieldset element is especially suited to this
32       and the HTMLDocument.addFieldset (3kaya) function handles this.
33

AUTHORS

35       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
36       (kaya@kayalang.org). For further information see http://kayalang.org/
37

LICENSE

39       The  Kaya  standard  library  is free software; you can redistribute it
40       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
41       License  (version  2.1  or  any later version) as published by the Free
42       Software Foundation.
43
45       HTMLDocument.addFieldset (3kaya)
46       HTMLDocument.addLocalControlInput (3kaya)
47       HTMLDocument.addRemoteForm (3kaya)
48
49
50
51Kaya                             December 2010HTMLDocument.addLocalForm(3kaya)
Impressum