我想从excel表中获取数据时使用动态进度条

时间:2016-05-09 05:31:10

标签: javascript jquery html twitter-bootstrap

我想插入进度条(bootstrap)。当数据从excel表格下拉到下拉列表框时,大约需要5秒钟。我想要进度条填充网页。想一想。

1 个答案:

答案 0 :(得分:0)

I guess you are looking for some preloader shown on your page when an event gets triggered..I have written a piece code where you can achieve that..

查看:

<ul id="prloader" style="display:none">
<li>
<img src="~/images/loader.gif" /></li>
<li id="msg">Processing. Please Wait...</li>
</ul>

Jquery(如果你使用ajax调用):

 $('****').change(function(){        //You can have any other event based on your requirement..

  $('#prloader').show();

  $.ajax({
  url:"../../Controller/Action",
  success:function(response){

   //Have your logic here


   $('#prloader').hide();

  },
  error:function(){

  $('#prloader').hide();

  }
  });
 });