We have a public facing SharePoint site, where members can access various information. Some members was missing the option to scroll, when visiting the site. The problem was with our masterpage, as we had disabled the ribbon and the site was "anonymous". The error occurred when Sharepoint loaded the ribbon and other scipts on initialisation. The following javascipt, found some where on the internet, takes care of that:
if (jQuery.browser.webkit) {
jQuery(document).ready(function () {
var interval;
function loopCheck() {
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false)
_spBodyOnLoadWrapper();
else
window.clearInterval(interval);
}
// Give SP a chance..
setTimeout(function () { interval = window.setInterval(loopCheck, 30); }, 120);
});
}
Ingen kommentarer:
Send en kommentar