SharePoint 错误 movesiteTitle() 每当页面加载后出现错误

标签 sharepoint sharepoint-2010 shared-libraries sharepoint-designer

ReferenceError: documentGetElementsByName 未定义 MoveSiteTitle();

ReferenceError: MoveSiteTitle 未定义

MoveSiteTitle();

任何帮助......!

最佳答案

好吧,正如 df1 所报告的那样,这似乎是一个与 Chrome 相关的问题。但是,如果您愿意,有一种解决方案可以消除脚本错误。

将这段代码放在母版页中 s4-workspace 标签或类似标签的上方:

if(typeof documentGetElementsByName==='undefined')
{
    documentGetElementsByName = function(value){
        if($('[name="'+value+'"]'))
        {
            return $('[name="'+value+'"]');
        }
        return null;
    };
}

if(typeof MoveSiteTitle==='undefined')
{
    // Well.... Don't know what this function is supposed to do                           
    // but this way I am avoiding script error...
    MoveSiteTitle = function(value){
        return "";
    };
}

关于SharePoint 错误 movesiteTitle() 每当页面加载后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12870678/

相关文章:

c# - 没有代码隐藏的 ASP.net 页面

java - 如何使用 Java 将文档上传到 SharePoint?

asp.net - 如何 : Manupilate SharePoint:AspMenu control (Style-wise)

c++ - 尝试在 qml 文件中使用共享库时出错

Jenkins 管道共享库与插件

sharepoint - StaticName 和 InternalName 的区别(在 SPField 类中)

java - com.sun.org.apache.xerces.internal.dom.ElementImpl 的替代方案

asp.net - 面对双跃点,我们应该使用 Exchange 模拟还是 Kerberos 委派

csv - 导出列表中的所有列及其数据值

c++ - 为什么 -fsanitize=undefined 导致 "undefined reference to typeinfo"?