inmarelibero/jQuery.AjaxQueue — Issue #2: percentual value of the progress
Author: inmarelibero
Created: 2011-11-15 10:35:35+00:00
State: open

Add the function getPercentualProcessed().

It returns the float value (two decimals), 0 <= [value] <= 1, reflecting the percentual of the queue processed so far.

An internal variable "num_total_ajax_calls" is stores in the object AjaxQueue. When an ajax options dictionary is added to the queue, this variable is incremented by 1.

As it is possible to add ajax options dictionaries on the fly, it allows sometimes that the percentual value returned is inferior then the previous one.