Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Voliware/AjaxPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AjaxPlus

AjaxPlus is small a library of AJAX modules, including:

AjaxModule

Fetches data via an AJAX request every x milliseconds.

var newsGetter = new AjaxModule({
    request : Server.getData,
    interval : 40000    
});
newsGetter.on('done', function(data){
    $newsPanel.update(data);
});
newsGetter.start();

AjaxMonitor

Monitors all AJAX requests during a page's life time. If the number of failed requests equals maxFailures before the resetTimer amount passes, AjaxMonitor will change its internal state to offline. By default, it will also abort all requests other than its own heartbeat until it is back online.

var monitor = new AjaxMonitor({
   heartbeatUrl : '/',
   maxFailures : 10,
   resetTimer : 30000
});

Also included is AjaxPoll and AjaxQueue. Read more about AjaxPlus.

Documentation & Tutorials

View the docs for a jsDoc documentation, or check out the Wiki for step-by-step explinations of how to use all of the classes.

Installation

Simply include the minified or non-minified production builds in web app.

Dependencies

AjaxPlus depends on the WebUtil library. This small library is already built into the distribution and does not need to be included.

Contributors

Written by Anthony Agostino.

License

Licensed under the MIT license.

About

Manage, long-poll, queue, and monitor AJAX requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published