stats static function
These counters keep a track of various http requests sent by FusionCharts. These can be retrieved using stats
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
A count of all
XMLHttpRequest objects created.
Sum of all requests sent to server (both GET and POST.)
The total number of requests that had a successful return from server.
The total number of requests that failed to communicate with server due to various factors.
XMLHttpRequest objects that are idle for later use or has not been disposed yet.
headers static member
http-headers that are sent with every AJAX request to the server. More can be added and existing items can be modified.
Prevents cacheing of AJAX requests.
Lets the server know that this is an AJAX request.
Lets server know which web application is sending requests.
Mentions content-types that are acceptable for the response. Some servers require this for Ajax communication.
The MIME type of the body of the request along with its charset.