The FormData interface provides a way to easily construct a set
key/value pairs representing form fields and their values, which
then be easily sent using the xml.XMLHttpRequest.send()
method.
uses the same format a form would use if the encoding type were
to "multipart/form-data".
The FormData interface provides a way to easily construct a set key/value pairs representing form fields and their values, which then be easily sent using the `xml.XMLHttpRequest.send()` method. uses the same format a form would use if the encoding type were to \"multipart/form-data\".
(append this & args)
Method.
The append() method of the web.FormData
interface appends a
value onto an existing key inside a FormData object, or adds
key if it does not already exist.
`There are two versions of this method: a two and a three parameter version:
formData.append(name, value); formData.append(name, value, filename);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/append
Method. The append() method of the `web.FormData` interface appends a value onto an existing key inside a FormData object, or adds key if it does not already exist. `There are two versions of this method: a two and a three parameter version: formData.append(name, value); formData.append(name, value, filename);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/append`
Constructor.
The FormData() constructor creates a new web.FormData
object.
form Optional
An HTML web.<form>
element — when specified, the web.FormData
object will be populated with the form's current keys/values using the name property of each element for the keys and their submitted value for the values. It will also encode file input content.
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData
Constructor. The FormData() constructor creates a new `web.FormData` object. form Optional An HTML `web.<form>` element — when specified, the `web.FormData` object will be populated with the form's current keys/values using the name property of each element for the keys and their submitted value for the values. It will also encode file input content. See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData`
(delete this name)
Method.
The delete() method of the web.FormData
interface deletes a
and its value(s) from a FormData object.
formData.delete(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete
Method. The delete() method of the `web.FormData` interface deletes a and its value(s) from a FormData object. `formData.delete(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete`
(entries this)
Method.
The FormData.entries() method returns an web.iterator
allowing
go through all key/value pairs contained in this object. The
of each pair is a web.USVString
object; the value either a
or a web.Blob
.
formData.entries();
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/entries
Method. The FormData.entries() method returns an `web.iterator` allowing go through all key/value pairs contained in this object. The of each pair is a `web.USVString` object; the value either a or a `web.Blob`. `formData.entries();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/entries`
(get this name)
Method.
The get() method of the web.FormData
interface returns the
value associated with a given key from within a FormData object.
you expect multiple values and want all of them, use the web.getAll()
instead.
formData.get(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/get
Method. The get() method of the `web.FormData` interface returns the value associated with a given key from within a FormData object. you expect multiple values and want all of them, use the `web.getAll()` instead. `formData.get(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/get`
(get-all this name)
Method.
The getAll() method of the web.FormData
interface returns all
values associated with a given key from within a FormData object.
formData.getAll(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll
Method. The getAll() method of the `web.FormData` interface returns all values associated with a given key from within a FormData object. `formData.getAll(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll`
(has this name)
Method.
The has() method of the web.FormData
interface returns a boolean
whether a FormData object contains a certain key.
formData.has(name);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/has
Method. The has() method of the `web.FormData` interface returns a boolean whether a FormData object contains a certain key. `formData.has(name);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/has`
(keys this)
Method.
The FormData.keys() method returns an web.iterator
allowing
go through all keys contained in this object. The keys are web.USVString
formData.keys();
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/keys
Method. The FormData.keys() method returns an `web.iterator` allowing go through all keys contained in this object. The keys are `web.USVString` `formData.keys();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/keys`
(set this & args)
Method.
The set() method of the web.FormData
interface sets a new value
an existing key inside a FormData object, or adds the key/value
it does not already exist.
`There are two versions of this method: a two and a three parameter version:
formData.set(name, value); formData.set(name, value, filename);
Parameters
name
The name of the field whose data is contained in value.
value
The field's value. In the two parameter version this is a web.USVString
, or if it is not, it is converted to a string. In the three parameter version this can be a web.Blob
, file.File
, or a web.USVString
. If none of these are specified the value is converted to a string.
filename Optional
The filename reported to the server (a web.USVString
), when a web.Blob
or file.File
is passed as the second parameter. The default filename for web.Blob
objects is "blob".
Note: If you specify a web.Blob
as the data to append to the FormData object, the filename that will be reported to the server in the "Content-Disposition" header used to vary from browser to browser.`
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/set
Method. The set() method of the `web.FormData` interface sets a new value an existing key inside a FormData object, or adds the key/value it does not already exist. `There are two versions of this method: a two and a three parameter version: formData.set(name, value); formData.set(name, value, filename); Parameters name The name of the field whose data is contained in value. value The field's value. In the two parameter version this is a `web.USVString`, or if it is not, it is converted to a string. In the three parameter version this can be a `web.Blob`, `file.File`, or a `web.USVString`. If none of these are specified the value is converted to a string. filename Optional The filename reported to the server (a `web.USVString`), when a `web.Blob` or `file.File` is passed as the second parameter. The default filename for `web.Blob` objects is \"blob\". Note: If you specify a `web.Blob` as the data to append to the FormData object, the filename that will be reported to the server in the \"Content-Disposition\" header used to vary from browser to browser.` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/set`
(values this)
Method.
The FormData.values() method returns an web.iterator
allowing
go through all values contained in this object. The values are
or web.Blob
objects.
formData.values();
See also: https://developer.mozilla.org/en-US/docs/Web/API/FormData/values
Method. The FormData.values() method returns an `web.iterator` allowing go through all values contained in this object. The values are or `web.Blob` objects. `formData.values();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FormData/values`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close