簡體   English   中英

從Excel工作表獲取數據時,我想使用動態進度條

[英]I want to use dynamic progressbar when the data fetch from excel sheet

我想插入進度條(bootstrap)。從Excel工作表中提取數據到下拉列表框大約需要5秒鍾。直到我希望進度條填滿網頁。

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();

  }
  });
 });

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM