我们如何在提交SharePoint列表项时向loading.gif图像显示。 [英] How we can show to loading.gif image while submitting the SharePoint list items.

查看:77
本文介绍了我们如何在提交SharePoint列表项时向loading.gif图像显示。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们如何在提交SharePoint列表项时显示 loading.gif 图像,并在项目保存时关闭此gif我们使用SharePoint开箱即用" SaveAction ()"操作不使用自定义
JavaScript / Jquery REST api


先谢谢你!



谢谢&问候


Deepak Chauhan




SharePoint 2010& 2013和Office-365品牌和前端定制,UI设计

解决方案

您好,


以下代码供您参考:

< script src =" // code.jquery.com/jquery-1.11.1.min.js"类型= QUOT;文本/ JavaScript的">< /脚本> 
< script type =" text / javascript">
函数PreSaveAction(){


(&#;#WebPartWPQ2")。hide();


(" .ms-webpart -zone")。append("< img width ='100'style ='margin-left:200px; margin-top:100px'height ='100'src ='/ _ layouts / 15 / images / loadingcirclests16.gif "/>");

setTimeout(function(){return true;},5000);
返回true;
}
< / script>

最好的问候,


Dennis



Hi All,

How we can show to loading.gif image while submitting the SharePoint list items and close this gif when items save and we are using SharePoint out of the box "SaveAction()" action not using custom JavaScript/Jquery and REST api

Thanks you in Advance !!

Thanks & Regards

Deepak Chauhan


SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

解决方案

Hi,

The following code for your reference:

<script src="//code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
function PreSaveAction() {


("#WebPartWPQ2").hide();


(".ms-webpart-zone").append("<img width='100' style='margin-left:200px;margin-top:100px' height='100' src='/_layouts/15/images/loadingcirclests16.gif'/>"); setTimeout(function() {return true; }, 5000); return true; } </script>

Best Regards,

Dennis


这篇关于我们如何在提交SharePoint列表项时向loading.gif图像显示。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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