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
<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
<script>
tag to add a javascript fileval 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
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
<input>
tag for an integerval float_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:float -> float Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a floatval string_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string -> string Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a stringval user_type_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:'a ->
('a -> string) -> 'a Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a user typeval int_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:int -> int Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input type="password">
tag for an integerval float_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:float -> float Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input type="password">
tag for a floatval string_password_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string -> string Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input type="password">
tag for a stringval 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
<input type="password">
tag for a user typeval hidden_int_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
int Eliom.param_name -> int -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for an integerval hidden_float_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
float Eliom.param_name -> float -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a floatval hidden_string_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
string Eliom.param_name -> string -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a stringval hidden_user_type_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
('a -> string) ->
'a Eliom.param_name -> 'a -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag for a user typeval bool_checkbox : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool -> bool Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tagval string_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
string option Eliom.param_name -> string -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag with string contentval int_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
int option Eliom.param_name -> int -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag with int contentval float_radio : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?checked:bool ->
float option Eliom.param_name -> float -> [> Xhtmltypes.input ] XHTML.M.elt
<input>
tag with float contentval 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
<input>
tag with user_type contentval 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
<textarea>
tagval 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
<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
<input>
tagval file_input : ?a:Xhtmltypes.input_attrib XHTML.M.attrib list ->
?value:string ->
Extensions.file_info Eliom.param_name -> [> Xhtmltypes.input ] XHTML.M.elt