How to show progress bar while loading using Ajax call? The AJAX Request maybe ASYNC or SYNC! Stayed Informed – Best JavaScript Interview Questions & Answers Table of Context – 1. HTML 2. CSS 3. JavaScript and Ajax Request HTML Code – <div id= "wait" class= "ajax-loader" > <div class= "ajax-loader-img" ><img src= '~/Images/loader-ui/loading_2x.gif' /><br> wait... </div> </div> CSS Code – .ajax-loader { display : none ; position : absolute ; width : 100 % ; height : 100 % ; z-index : 99999 ; background-color : rgba( 256 , 256 , 256 , 0 . 4 ); } .ajax-loader-img { position : absolute ; top : 50 % ; left : 50 % ; padding : 2px ; } AJAX ASYNC and SYNC REQUEST Code – //#region AJAX ASYNC REQUEST var asyncCall = function (url, data, GETPOST, callback, arr_hdrs) { var glob...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers