package js_of_ocaml

  1. Overview
  2. Docs
Compiler from OCaml bytecode to JavaScript

Install

Dune Dependency

Authors

Maintainers

Sources

js_of_ocaml-5.0.1.tbz
sha256=7a210f1ca16a742381947dc67c3d8d9f4c94fbf20738744b1353897985b61069
sha512=07a973561190686d56bd5d56d9a275e177716ea8b9720f6acc7ddf8618680844a6d0c798447567ea9542d83bab524c165d076f3cce0769a12fc483ef8cd6a733

doc/js_of_ocaml/Js_of_ocaml/Form/index.html

Module Js_of_ocaml.Form

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.