I have a lot of files ( more than 120k ) and I want to read them in case to add their content to my database. I have processed with php to list the main directory content and send the result as json to my javascript. In my javascript I just showed the result first when I got the error :
Warning : Unresponsive script A script on this page may be busy, or it may have stopped responding...
I can choose between Continue or stop the script. Here is my code :
$(document).ready(function(){
$.post("old.php", {aucunParam: 0}, function(data){
for(var file in data["files"]){
$("body").append(data["files"][file]+'<br>');
}
}, "json");
});
How can I process the files and have a real time look at the processing ?