(extends Object)
Object Summary
A controller to manage XHRequests.
The object is not used directly, it is an intermediate helper object that the sardalya API itself utilizes.
Constructor
This object is statically accessed. It does not have a constructor.
Methods
comments
Increments the private member.
comments
Decrements the private member.
return
The active number of AJAX requests executing at that instance.
comments
Gets the active number of AJAX requests. It may give some idea on the overall AJAX activity of the application. It may give clues about performance bottlenecks as well.
Note:
There is a theoretical possibility of miscalculating the number of active threads because of race conditions in the code. Since JavaScript is not Java; we cannot implement a 100% reliable locking mechanisim.
However when we consider the typical network latency of the web having such a race condition is almost impossible and can be neglected for all practical purposes.
One more word on the "javascript is not java" issue.
Javascript is to java as car is to carpet.
They are totally unrelated things. Still a lot of people are confused though, and mix up the two.
See Also
Usage Examples
Comments (0)
You don't have permission to comment on this page.