Welcome Guest, Not a member yet? Register   Sign In
How to load functions by sequentiall in jquery
#4

[eluser]shankar ganesh[/eluser]
Hi,
I updated the code as below based on previous reply, it works fine,thanks very much Smile

Code:
var ALL_RESULTS = new Arrary();
var MASTER_RESULT = new Arrary();

function load_json_files()
{
        $.ajaxSetup({async:false});
        for(i=0;i<MASTER_RESULT.length;i++)
        {
                    $.getJSON(MASTER_RESULT[i], function(result) {
                        ALL_RESULTS[i] = result;
                    });                    
        }
        $.ajaxSetup({async:true});
        display_json_files();
}
function display_json_files()
{
    alert(ALL_RESULTS.length);
}

Thank you very much Smile


Messages In This Thread
How to load functions by sequentiall in jquery - by El Forum - 01-19-2012, 11:12 PM
How to load functions by sequentiall in jquery - by El Forum - 01-19-2012, 11:48 PM
How to load functions by sequentiall in jquery - by El Forum - 01-19-2012, 11:55 PM
How to load functions by sequentiall in jquery - by El Forum - 01-20-2012, 12:11 AM
How to load functions by sequentiall in jquery - by El Forum - 01-20-2012, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB