Subversion Repositories Transart

Rev

Rev 13 | Blame | Compare with Previous | Last modification | View Log | RSS feed

function clearjQueryCache(){
    for (var x in jQuery.cache){
        delete jQuery.cache[x];
    }
}
function getData(data_link,target){
$('#'+target).html('');
$.ajaxSetup({
    timeout: 200000
});
if ($('#loaderdiv').length){
$('#loaderdiv').show();
}

$('#'+target).load(encodeURI(data_link), function(response, status, xhr){
            if (status == "success"){
                $("#lader_status").html("Ready");
                                if ($('#loaderdiv').length){
                                $('#loaderdiv').hide();
                                clearjQueryCache();
                        }
            } else {
                $("#lader_status").html("An error occured: <br>" + xhr.status + " " + xhr.statusText)
            }
        });



}