我试图在启用InfoPath浏览器的每个回发后在客户端上执行JavaScript。这一直有效,直到我们最近升级到SharePoint 2013.有没有人知道是否有任何事件可以附加处理程序来实现此目的?
答案 0 :(得分:2)
ExecuteOrDelayUntilScriptLoaded(function () {
var viewPostCreateBase = View.PostCreate;
var viewPostCreateOverride = (function (a) {
return function (a) {
viewPostCreateBase(a);
// Code to be executed after each postback
}
});
View.PostCreate = viewPostCreateOverride();
}, "_InfoPathCoreJs");