ajax

This module wraps the `fetch` API and handles any kind of HTTP interaction, including serialization of form parameters.
Source:

Methods

(async, static) load(url, body) → {Dollarsign}

Load the contents of an external URL into the elements matched by this query. When a second `body` argument is passed, assume this will be a POST request, otherwise it will be a GET request.
Source:
Parameters:
Name Type Description
url string URL to load into this element as HTML.
body string (optional) POST body to send along with the URL.
Returns:
Type:
Dollarsign
this object

(static) serialize() → {string}

Convert the values of form controls into URL-encoded params that can be sent along the wire.
Source:
Returns:
Type:
string
URL-encoded params matching the values of each input.