Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AJAX

Manages AJAX communication with a server.

Hierarchy

Index

Constructors

constructor

  • new AJAX(baseUrl?: string, cacheTimeout?: number, responseTimeout?: number): AJAX
  • Creates a new managed AJAX instance.

    Parameters

    • Default value baseUrl: string = ""
         Base URL of the server.
      
    • Default value cacheTimeout: number = 3600000
         Use 0 milliseconds to turn off all cache systems. Default is 1
         hour.
      
    • Default value responseTimeout: number = 60000
         Time in milliseconds to wait for a server response. Default are 60
         seconds.
      

    Returns AJAX

Properties

baseUrl

baseUrl: string

Base URL of the server

cacheTimeout

cacheTimeout: number

Set to 0 to turn off all cache systems

responseTimeout

responseTimeout: number

Time in milliseconds to wait for a server response

Methods

hasOpenRequest

  • hasOpenRequest(): boolean

request

Generated using TypeDoc