Loading

Methods

stats static function

Returns the statistics of AJAX requests sent by FusionCharts.

Parameters

type

: string

[+]

Optionally, one can request a specific type of statistic by providing the type as one of the property-name of counters.

Properties

counters

These counters keep a track of various http requests sent by FusionCharts. These can be retrieved using stats

Attributes

objects

: number

[+]

The number of internal Ajax objects created by FusionCharts. This is not same as XMLHttpRequest object since one Ajax object can have a number of XMLHttpRequest objects.

xhr

: number

[+]

A count of all XMLHttpRequest objects created.

requests

: number

[+]

Sum of all requests sent to server (both GET and POST.)

success

: number

[+]

The total number of requests that had a successful return from server.

failure

: number

[+]

The total number of requests that failed to communicate with server due to various factors.

idle

: number

[+]

XMLHttpRequest objects that are idle for later use or has not been disposed yet.

headers static member

The default http-headers that are sent with every AJAX request to the server. More can be added and existing items can be modified.

Attributes

"If-Modified-Since"

: string

[+]

Prevents cacheing of AJAX requests.

Default:

Sat, 29 Oct 1994 19:43:31 GMT

"X-Requested-With"

: string

[+]

Lets the server know that this is an AJAX request.

Default:

XMLHttpRequest

"X-Requested-By"

: string

[+]

Lets server know which web application is sending requests.

Default:

FusionCharts

Accept

: string

[+]

Mentions content-types that are acceptable for the response. Some servers require this for Ajax communication.

Default:

text/plain, /

"Content-Type"

: string

[+]

The MIME type of the body of the request along with its charset.

Default:

application/x-www-form-urlencoded; charset=UTF-8

  • Methods
  • stats static
  • Properties
  • counters
  • headers static
Top