Due to the large number of data and the complexity of the conditions of their sampling, the task arose to load the data page by page. How can I do that? Loading in a cycle for an Ajax is not an option at all, since she is synchronous.

    1 answer 1

    Recursion can help. For example:

    function downloadMarkers(){ $.ajax( ... success: function(){ downloadMarkers() } ); } 
    • It can not, but it will even help. And I would recommend writing this in jQuery1.7 + style using promises - tutankhamun