{"id":48,"date":"2011-08-11T17:57:37","date_gmt":"2011-08-11T21:57:37","guid":{"rendered":"http:\/\/blogs.visigo.com\/chriscoulson\/?p=48"},"modified":"2011-08-11T17:59:26","modified_gmt":"2011-08-11T21:59:26","slug":"search-refinement-panel-web-part-show-more-link-not-working","status":"publish","type":"post","link":"https:\/\/blogs.visigo.com\/chriscoulson\/search-refinement-panel-web-part-show-more-link-not-working\/","title":{"rendered":"Search Refinement Panel Web Part &#8220;Show More&#8221; Link Not Working"},"content":{"rendered":"<p>I recently discovered that the &#8220;Show More&#8221; link on the Search Refinement Panel web part had stopped working, seemingly out of the blue. \u00a0With a bit of debugging I discovered that the functions defined in the onclick event:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nonclick=&quot;SearchEnsureSOD();ToggleRefMoreLessFilters(this, true);&quot;\r\n\r\n<\/pre>\n<p>were returning &#8220;Object Expected&#8221;. \u00a0For some reason the functions were no longer defined.<\/p>\n<p>I eventually figured out that the problem was that I had removed the Search Box web part from the page and replaced it with my own custom search box. \u00a0Apparently<strong> the Search Box web part is required on the same page as the Refinement Panel web part<\/strong>, as it injects JavaScript into the page that is used by the Refinement Panel.\u00a0 I fixed the problem by adding the Search Box web part back onto the page and hiding it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently discovered that the &#8220;Show More&#8221; link on the Search Refinement Panel web part had stopped working, seemingly out of the blue. \u00a0With a bit of debugging I discovered that the functions defined in the onclick event: onclick=&quot;SearchEnsureSOD();ToggleRefMoreLessFilters(this, true);&quot; were returning &#8220;Object Expected&#8221;. \u00a0For some reason the functions were no longer defined. I eventually [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,5],"tags":[86,85,84,83,78,79,319,87,80,22,24,82,81,39],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-search","category-sharepoint","tag-javascript","tag-not-defined","tag-object-expected","tag-onclick","tag-refinement","tag-refinement-panel","tag-search","tag-search-box","tag-searchensuresod","tag-sharepoint-2","tag-sharepoint-2010","tag-show-more","tag-togglerefmorelessfilters","tag-web-part"],"_links":{"self":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":1,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":49,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/posts\/48\/revisions\/49"}],"wp:attachment":[{"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.visigo.com\/chriscoulson\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}