I Need a Spinner Animation to Show While I am Loading an Excel File?

I am loading an Excel File using a JQGrid.  I need an animated image to show while I am loading the Excel file.  I would prefer to use JQuery and Ajax to do this.

Thanks,

Dan
danielolorenzAsked:
Who is Participating?
 
leakim971PluritechnicianCommented:
Add this inside your document read block before any other code
$.ajaxSetup({ 
     beforeSend:function() { 
         $("<img src='http://miniontours.yzi.me/loading.gif'  style='position:relative;top:200px;left:200px;z-index:2000' id='loading-excel' />").appendTo("body");
     },
     complete:function() {
           $("#loading-excel").remove();
     }
});

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.