在div中加载jsp页面之前,在该div中加载一个加载器 [英] Before load a jsp page within a div, load a loader in that div

查看:282
本文介绍了在div中加载jsp页面之前,在该div中加载一个加载器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用angularjs在div标签中加载jsp页面内容。在jsp页面内有一些文字和按钮。它成功完成了。但是在div中加载jsp页面内容需要一些时间。这里我使用一些类来加载一个加载器(span)。我希望在该div中加载jsp内容后禁用加载器。



index.html

 <   div     ng-include   =  paymenturl >  <   / div  >  
< div < span class =code-keyword>>
< span class = glyphicon glyphicon-refresh glyphicon-refresh-animate > < span class =code-keyword>< / span >
< / div >





angular.js

 $ scope .paymenturl = '  https:/..../ iwa / PaymentForm.jsp?orderNo =' + $ scope.orderNo + ' & amount =' + $ scope.amount + ' & IOMS =' + $ scope.selectedIOMS.connection; 

解决方案

scope.paymenturl = ' https:/.... / iwa / PaymentForm。 jsp?orderNo =' +


scope.orderNo + ' & ;量=' +

scope.amount + ' & IOMS =' +


using angularjs to load a jsp page content in div tag. within the jsp page some text and button there. It was successful completed. But it take some time to load the jsp page content within the div. Here i'm using some class to load a loader (span). I want to disable the loader after jsp content load in that div.

index.html

<div ng-include="paymenturl"></div>
  <div>
       <span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
  </div>



angular.js

$scope.paymenturl='https:/..../iwa/PaymentForm.jsp?orderNo='+$scope.orderNo+'&amount='+$scope.amount+'&IOMS='+$scope.selectedIOMS.connection;

解决方案

scope.paymenturl='https:/..../iwa/PaymentForm.jsp?orderNo='+


scope.orderNo+'&amount='+


scope.amount+'&IOMS='+


这篇关于在div中加载jsp页面之前,在该div中加载一个加载器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆