Class/Object

org.scalajs.dom

FormData

Related Docs: object FormData | package dom

Permalink

class FormData extends Object with Iterable[Tuple2[String, |[String, Blob]]]

XMLHttpRequest Level 2 adds support for the new FormData interface. FormData 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.

Annotations
@JSType() @native() @JSGlobal()
Linear Supertypes
Iterable[Tuple2[String, |[String, Blob]]], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FormData
  2. Iterable
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FormData(form: HTMLFormElement, submitter: HTMLElement)

    Permalink
  2. new FormData(form: HTMLFormElement)

    Permalink
  3. new FormData()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def append(name: String, value: Blob, blobName: String = js.native): Unit

    Permalink

    The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.

    The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.

    name

    The name of the field whose data is contained in value.

    value

    The field's value. This can be a string or Blob (including subclasses such as File). If none of these are specified the value is converted to a string.

    blobName

    The filename reported to the server (a string), when a Blob or File is passed as the second parameter. The default filename for Blob objects is "blob". The default filename for File objects is the file's filename.

  5. def append(name: String, value: String): Unit

    Permalink

    The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.

    The append() method of the FormData interface appends a new value onto an existing key inside a FormData object, or adds the key if it does not already exist.

    name

    The name of the field whose data is contained in value.

    value

    The field's value. This can be a string or Blob (including subclasses such as File). If none of these are specified the value is converted to a string.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def delete(name: String): Unit

    Permalink

    The delete() method of the FormData interface deletes a key and its value(s) from a FormData object.

    The delete() method of the FormData interface deletes a key and its value(s) from a FormData object.

    name

    The name of the key you want to delete.

  9. def entries(): Iterator[Tuple2[String, |[String, Blob]]]

    Permalink

    The FormData.entries() method returns an iterator which iterates through all key/value pairs contained in the FormData.

    The FormData.entries() method returns an iterator which iterates through all key/value pairs contained in the FormData. The key of each pair is a string object, and the value is either a string or a Blob.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(name: String): |[String, Blob]

    Permalink

    The get() method of the FormData interface returns the first value associated with a given key from within a FormData object.

    The get() method of the FormData interface returns the first value associated with a given key from within a FormData object. If you expect multiple values and want all of them, use the getAll() method instead.

    name

    A string representing the name of the key you want to retrieve.

    returns

    A value whose key matches the specified name. Otherwise, null.

  14. def getAll(name: String): Array[|[String, Blob]]

    Permalink

    The getAll() method of the FormData interface returns all the values associated with a given key from within a FormData object.

  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def has(name: String): Boolean

    Permalink

    The has() method of the FormData interface returns whether a FormData object contains a certain key.

    The has() method of the FormData interface returns whether a FormData object contains a certain key.

    name

    A string representing the name of the key you want to test for.

    returns

    true if a key of FormData matches the specified name. Otherwise, false.

  17. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  21. def jsIterator(): Iterator[Tuple2[String, |[String, Blob]]]

    Permalink
    Definition Classes
    FormData → Iterable
    Annotations
    @JSName( js.Symbol.iterator )
  22. def keys(): Iterator[String]

    Permalink

    The FormData.keys() method returns an iterator which iterates through all keys contained in the FormData.

    The FormData.keys() method returns an iterator which iterates through all keys contained in the FormData. The keys are strings.

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  27. def set(name: String, value: Blob, blobName: String = js.native): Unit

    Permalink

    The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.

    The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.

    name

    The name of the field whose data is contained in value.

    value

    The field's value.

  28. def set(name: String, value: String): Unit

    Permalink

    The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.

    The set() method of the FormData interface sets a new value for an existing key inside a FormData object, or adds the key/value if it does not already exist.

    name

    The name of the field whose data is contained in value.

    value

    The field's value.

  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  33. def values(): Iterator[|[String, Blob]]

    Permalink

    The FormData.values() method returns an iterator which iterates through all values contained in the FormData.

    The FormData.values() method returns an iterator which iterates through all values contained in the FormData. The values are strings or Blob objects.

  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Iterable[Tuple2[String, |[String, Blob]]]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped