package js_of_ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module provides functions to manipulate forms.

class type formData = object ... end
val formData : formData Js.t Js.constr
type form_elt = [
  1. | `String of Js.js_string Js.t
  2. | `File of File.file Js.t
]
type form_contents = [
  1. | `Fields of (string * form_elt) list ref
  2. | `FormData of formData Js.t
]
val append : form_contents -> (string * form_elt) -> unit
val post_form_contents : Dom_html.formElement Js.t -> form_contents
val get_form_contents : Dom_html.formElement Js.t -> (string * string) list
val empty_form_contents : unit -> form_contents
val form_elements : ?get:bool -> Dom_html.formElement Js.t -> (string * form_elt) list
OCaml

Innovation. Community. Security.