Ajax

@deprecated("scalajs-dom no longer includes custom utilities, only facades. Try using dom.fetch API which doesn\'t require additional utilities.", "2.0.0")
object Ajax

Wraps an XMLHttpRequest to provide an easy one-line way of making an Ajax call, returning a Future.

Deprecated
class Object
trait Matchable
class Any
Ajax.type

Type members

Classlikes

object InputData
Companion:
class
@native @JSType
sealed trait InputData extends Any

Supported data formats for Ajax are implicitly converted to InputData

Supported data formats for Ajax are implicitly converted to InputData

Companion:
object

Value members

Concrete methods

def apply(method: String, url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def delete(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def get(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def patch(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def post(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def put(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]