Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.56 KB

File metadata and controls

27 lines (20 loc) · 1.56 KB

Module: lib.dom.form

README -> API Index -> Modules Index -> lib.dom.form

Source: src/lib/dom/form/index.js

Form collection and lightweight submit orchestration helpers for DOM forms.

Exported Functions

  • submit - Submit from a trigger or collected payload through native or request-envelope flow.
  • collect - Alias of collectForm.
  • collectForm - Collect a form into { url, method, parms, form, event }.
  • toJson - Convert trigger/collected form into JSON-like object (inflated or flat).
  • makeUrl - Build final URL, appending query params for GET.
  • makeHeader - Build request headers from method/body/content type inputs.
  • makeBody - Build request body using JSON/urlencoded/form-data rules.
  • getDomKV - Read one element into {key,value} entry (or list of entries).
  • arrayToQS - Convert key/value tuple list into query string.
  • arrayToHash - Convert key/value tuple list into object with repeat keys as arrays.

Related