When you using JavaScript in your website you use ajax jQuery to retrieve data from your API. But if you want to run a JavaScript code after ajax request completed how you can do it. Method is simple look at the below code for it.
$( document ).ajaxComplete(function() {
$( ".log" ).text( "Triggered ajaxComplete handler." );
});
If you want to append some html codes after ajax complete you can use this.
$( document ).ajaxComplete(function( event, request, settings ) {
$( "#msg" ).append( "<li>Request Complete.</li>" );
});
.ajaxComplete()
fires after completion of each AJAX request on your page.
If you want to know how to use the .ajaxStop() method ? Visit this :https://slaford.com/html/how-to-use-jquery-ajaxstop-method/
Only a smiling visitor here to share the love (:, btw outstanding style.
Some genuinely nice stuff on this internet site, I like it.
Hi my family member! I want to say that this post is awesome, nice written and include approximately all significant infos. I would like to peer extra posts like this.
I discovered your blog site on google and check a few of your early posts. Continue to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. Seeking forward to reading more from you later on!…