php - How to remove "Warning: Unresponsive Script" -


this question has answer here:

i using jquery ajax code this:

$.each(url_id, function(index, value) {         $.ajax({             async: false,             type: "post",             url: "webservices/insert-manual.php",             data: { url_id: value},             datatype: "json"         }).done(function(response){             if(response.code == "200"){                 $("#results").append('<div class="results-list"><strong>well done!</strong></div>');             }else{                 $("#results").append('<div class="results-list-error"><strong>oh snap!</strong> there no records update in database.</div>');             }         });      }); 

when run script got error message in mozilla alert.

a script on page may busy, or may have stopped responding. can stop script now, or can continue see if script complete.  script: http://localhost/jquery-project/js/jquery-1.7.2.min.js:2 

and ask me stop script or continue.

if click on stop script stop loop $.each or if click on continue continue run further code , after time again ask me.

my question how can remove alert.

async: false, 

this causing problem. blocks javascript until page loaded. remove it.

it means you're trying run code synchronously, e.g. in blocking mode.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -