确定何时加载所有列表Web部件 [英] Determining when all list web parts are loaded

查看:56
本文介绍了确定何时加载所有列表Web部件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里是场景,您在Web页面上添加了10个列表...页面上唯一的自定义内容是CSS和JavaScript,其他所有内容都是OoTB.有些将它们作为目标,因此您可能有4个加载了A组,5个加载了B组,等等... (使用JavaScript)可以与突变观察器一起观察,您可以检测到何时将WebPartWPQ ##添加到DOM.解决的问题如下:

Here is the scenario, you have 10 lists added to a web page... The only thing custom on the page is CSS and JavaScript, everything else is OoTB. Some have targeting on them so you might have 4 loaded with group A, 5 with group B, etc... now CTX### or WPQ (using JavaScript) can be watched along with mutation observers you can detect when WebPartWPQ## is added to the DOM. The problem to resolve are the following:

1. SharePoint是否预先发送了要加载的所有列表Web部件(请记住有针对性,超级"用户可以删除列表视图.)

1. Does SharePoint send in advance all the list webparts it is going to load (remember there is targeting and a "super" user could remove a listview.)

2. SharePoint是否向自身发送通知,通知服务器已完成发送初始页面信息.

2. Does SharePoint send a notification to it's self that the server is done sending the initial page information.

我试图弄清楚如何使用JavaScript在客户端动态地基本了解SharePoint将要构建的列表视图(Web部件)或完成接收页面的初始构建并完成后的列表视图(Web部件)

I'm trying to figure out how to dynamically on the client side using JavaScript to basically know either the listviews (webparts) that SharePoint is going to build or when it is done receiving the initial build of the page and it is complete.

我不关心数据,也不关心REST或SOAP仅检测将要动态加载的内容或SharePoint在完成初始加载时未检测到用户许可或对特定数字进行硬编码的情况.有什么建议吗?

I'm not concerned with the data nor the REST or SOAP just detecting either what is going to be dynamically loaded or when SharePoint is done with the initial load without detecting user permission or hardcoding a specific number. Any suggestions?

推荐答案

FYI

https://stackoverflow.com/questions/16936250/sharepoint -2013-add-javascript-after-whole-page-load


这篇关于确定何时加载所有列表Web部件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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