Class: GDFormData

GDFormData()

GDFormData objects provide a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest send() method.

Constructor

new GDFormData()

Deprecated:
  • since version 9.0, where XMLHttpRequest is secured within cordova-plugin-bbd-base. It will be removed in future versions.
Source:

Methods

append(key, value)

Appends a key/value pair to the FormData object.
Parameters:
Name Type Description
key String Key for FormData value
value String Value for FormData key
Source:
Example
var formData = new FormData();
formData.append("key", "value");
console.log(formData.key); // "value"