单击“搜索”按钮时出现SharePoint 2007错误 - SendSoap为null或未定义

时间:2016-12-22 15:05:56

标签: sharepoint sharepoint-2007

我有一个SharePoint网站,我已经构建了一个自定义页面并添加了一个CoreResultsWebPart。 当我点击搜索按钮时,它给了我一个错误 “错误:属性'SendSoap'的值为null或未定义,而不是Function对象”

失败的代码是:

    <script type='text/javascript'>
        <!--
        var QLC=0;
        function AddHandler(e, f){
         var o=eval(e);
         eval(e+'=o?function(){o();f();}:f;');
        }
        function WireLinks(url, action, env, start){
         var links=document.body.getElementsByTagName('a');
         for (var i=0;i<links.length;i++)
          if(/^(CSR|BBR|SRP)_/.exec(links[i].id)) links[i].onclick = function(){SendClick(url,action,env,start,this);QLC=1;};
         AddHandler('window.onunload',function(){if(!QLC)SendSoap(url,action,env);});
        }
        AddHandler('window.onload',function(){WireLinks('[SiteName]/_vti_bin/search.asmx','urn:Microsoft.Search/RecordClick','<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><RecordClick xmlns="urn:Microsoft.Search"><clickInfoXml><![CDATA[<i xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" a="true" d="false" g="d964e0eb-7f03-42a3-9896-ea288900e1ba" h="0" m="0x42B62CE93EF8E4BD98E9E9F329ABBF390C38CF41,3722941504" n="0" p="N/A" q="efaultproperties,\u0027\u002b\u05DC\u05E9\u05DC\u05D9\u05D8\u05D4" t="2016-12-22T16:25:04.5281681\u002b02:00" u="[]/Pages/CustomSearchPage.aspx" v="0" x="0" xmlns="urn:Microsoft.Search"><f>false</f><r>0</r><s>aHfnSearchScopBestPractice</s><s>All Sites</s></i>]]></clickInfoXml></RecordClick></soap:Body></soap:Envelope>',0);});
        // -->
</script>

0 个答案:

没有答案