API Docs for: 1.3.12
Show:

EcRemote Class

Wrapper to handle all remote web service invocations.

Item Index

Properties

Methods

_delete

(
  • server
  • service
  • success
  • failure
)
static

DELETEs something at a remote endpoint. Composed of a server endpoint (root URL) and a service (service path).

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • success Function(object)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

getExpectingObject

(
  • server
  • service
  • success
  • failure
)
static

GETs something from a remote endpoint. Composed of a server endpoint (root URL) and a service (service path).

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • success Function(object)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

getExpectingString

(
  • server
  • service
  • success
  • failure
)
static

GETs something from a remote endpoint. Composed of a server endpoint (root URL) and a service (service path).

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • success Function(object)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

postExpectingObject

(
  • server
  • service
  • fd
  • success
  • failure
)
static

POSTs a request to a remote endpoint. Composed of a server endpoint (root URL) and a service (service path). Sends form data as a multi-part mime request.

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • fd FormData

    Form data to send as multi-part mime.

  • success Function(object)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

postExpectingString

(
  • server
  • service
  • fd
  • success
  • failure
)
static

POSTs a request to a remote endpoint. Composed of a server endpoint (root URL) and a service (service path). Sends form data as a multi-part mime request.

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • fd FormData

    Form data to send as multi-part mime.

  • success Function(string)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

postWithHeadersExpectingString

(
  • server
  • service
  • fd
  • headers
  • success
  • failure
)
static

POSTs a request to a remote endpoint. Composed of a server endpoint (root URL) and a service (service path). Sends form data as a multi-part mime request. Includes headers.

Parameters:

  • server String

    Protocol, hostname and path to the remote handler.

  • service String

    Path to service to invoke.

  • fd FormData

    Form data to send as multi-part mime.

  • headers Object

    Headers to attach to the HTTP post.

  • success Function(string)

    Method that is invoked if the server responds with a success (per jQuery ajax)

  • failure Function(string)

    Method that is invoked if the server responds with an error (per jQuery ajax) or a non-200/300.

Properties

async

Boolean static

Turn this property off to cause all remote web service calls to be synchronous. Can be useful for test scripts, blocking calls, etc.

async

Boolean static

Timeout for AJAX requests