Module type Eliom.XHTMLFORMSSIG


module type XHTMLFORMSSIG = sig .. end

val a : ?a:Xhtmltypes.a_attrib XHTML.M.attrib list ->
('a, unit, [< Eliom.get_service_kind ], [< Eliom.suff ], 'b,
unit Eliom.param_name, [< Eliom.registrable ])
Eliom.service ->
Eliom.server_params ->
Xhtmltypes.a_content XHTML.M.elt list -> 'a -> [> Xhtmltypes.a ] XHTML.M.elt
a service sp cont () creates a link from current to service. The text of the link is cont. For example cont may be something like [pcdata "click here"].

The last parameter is for GET parameters. For example a service sp cont (42,"hello")

The ~a optional parameter is used for extra attributes (see the module XHTML.M)

val css_link : ?a:Xhtmltypes.link_attrib XHTML.M.attrib list ->
XHTML.M.uri -> [> Xhtmltypes.link ] XHTML.M.elt
Creates a <link> tag for a Cascading StyleSheet (CSS).
val js_script : ?a:Xhtmltypes.script_attrib XHTML.M.attrib list ->
XHTML.M.uri -> [> Xhtmltypes.script ] XHTML.M.elt
Creates a <script> tag to add a javascript file
val make_uri : ('a, unit, [< Eliom.get_service_kind ], [< Eliom.suff ], 'b,
unit Eliom.param_name, [< Eliom.registrable ])
Eliom.service -> Eliom.server_params -> 'a -> XHTML.M.uri
Create the text of the service. Like the a function, it may take extra parameters.
val get_form : ?a:Xhtmltypes.form_attrib XHTML.M.attrib list ->
('a, unit, [< Eliom.get_service_kind ], [< Eliom.suff ], 'b,
unit Eliom.param_name, [< Eliom.registrable ])
Eliom.service ->
Eliom.server_params ->
('b -> Xhtmltypes.form_content XHTML.M.elt list) ->
[> Xhtmltypes.form ] XHTML.M.elt
get_form service current formgen creates a GET form from current to service. The content of the form is generated by the function formgen, that takes the names of page parameters as parameters.
val post_form : ?a:Xhtmltypes.form_attrib XHTML.M.attrib list ->
('a, 'b, [< Eliom.post_service_kind ], [< Eliom.suff ], 'c, 'd,
[< Eliom.registrable ])
Eliom.service ->
Eliom.server_params ->
('d -> Xhtmltypes.form_content XHTML.M.elt list) ->
'a -> [> Xhtmltypes.form ] XHTML.M.elt
post_form service current formgen creates a POST form from current to service. The last parameter is for GET parameters (as in the function a).
val int_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:int -> int Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input> tag for an integer
val float_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:float -> float Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input> tag for a float
val string_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string -> string Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input> tag for a string
val user_type_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:'a ->
('a -> string) -> 'a Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input> tag for a user type
val int_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:int -> int Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input type="password"> tag for an integer
val float_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:float -> float Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input type="password"> tag for a float
val string_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string -> string Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input type="password"> tag for a string
val user_type_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:'a ->
('a -> string) -> 'a Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an <input type="password"> tag for a user type
val hidden_int_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
int Eliom.param_name -> int -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an hidden <input> tag for an integer
val hidden_float_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
float Eliom.param_name -> float -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an hidden <input> tag for a float
val hidden_string_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
string Eliom.param_name -> string -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an hidden <input> tag for a string
val hidden_user_type_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
('a -> string) ->
'a Eliom.param_name -> 'a -> [> Xhtmltypes.input ] XHTML.M.elt
Creates an hidden <input> tag for a user type
val bool_checkbox : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool -> bool Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a checkbox <input> tag
val string_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
string option Eliom.param_name -> string -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a radio <input> tag with string content
val int_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
int option Eliom.param_name -> int -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a radio <input> tag with int content
val float_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
float option Eliom.param_name -> float -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a radio <input> tag with float content
val user_type_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
('a -> string) ->
'a option Eliom.param_name -> 'a -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a radio <input> tag with user_type content
val textarea : ?a:Xhtmltypes.textarea_attrib XHTML.M.attrib list ->
string Eliom.param_name ->
rows:XHTML.M.number ->
cols:XHTML.M.number ->
[ `PCDATA ] XHTML.M.elt -> [> Xhtmltypes.textarea ] XHTML.M.elt
Creates a <textarea> tag
val select : ?a:Xhtmltypes.select_attrib XHTML.M.attrib list ->
?selected:(string option * string) option ->
string option * string ->
(string option * string) list ->
string Eliom.param_name -> [> Xhtmltypes.select ] XHTML.M.elt
Basic support for the <select> tag.

The associated parameter is of type "string". It is used in forms as for example:

select (None, "inconnue") [(None, "C1"); (None, "C2")] classe

where "classe" is the parameter name. The different choices are of the form (<optional string1>, <string2>). "string2" is presented to the user and if selected it is the returned value except when "string1" is present (where it is "string1"). It is modeled after the way "select" is done in HTML.

Not all features of "select" are implemented.

val submit_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
string -> [> Xhtmltypes.input ] XHTML.M.elt
Creates a submit <input> tag
val file_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string ->
Extensions.file_info Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt