API Docs for: 0.1.0
Show:

zerk.network.ajax Class

AJAX Interface

Crossbrowser container for the XMLHttpRequest object.

Item Index

Properties

Methods

_createXMLHTTPObject

() XMLHttpRequest protected

Creates an environment specific XMLHttpRequest object

Returns:

XMLHttpRequest: The XMLHttpRequest object

request

(
  • url
  • post
  • successHandler
  • errorHandler
)
async

Performs an AJAX request

Parameters:

  • url String

    Target url

  • post Boolean

    true = POST
    false = GET

  • successHandler Function

    Event handler for success

  • errorHandler Function

    Event handler for error

Properties

_factories

Array protected

List of different XMLHttpRequest vendor implemenations