| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

AjaxController

Page history last edited by PBworks 17 years, 9 months ago


 

AjaxController

(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

 

AjaxController.incrementCount()

 

comments

Increments the private member.


AjaxController.decrementCount()

 

comments

Decrements the private member.


AjaxController.getActiveThreadCount()

 

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.