so i got this kind of ajax script
and is there any possible way to get how many % the script is loaded?
Code:
function browserio_tipas() { var tipas; if (window.ActiveXObject) { tipas = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { tipas = new XMLHttpRequest(); } return tipas; } var ajax = makeObjectUSER(); function reload_users() { ajax.open('GET', 'php.get.php?get=this'); ajax.onreadystatechange = function { var grazina = ajax.responseText; var divas = document.getElementById('divas'); if(ajax.readyState == 4) { divas.innerHTML = grazina; } else { divas.innerHTML = "Kraunasi..."; } } ajax.send(''); }
Comment