Saving Page Content Sharepoint with IE8 cause annoying delay


This is very annoying problem when you are programming with IE8 and using sharepoint .We are working with custom layout pages coding and this problems occured and waste our valuable time.

Symptom

When navigating away from a publishing page that is in edit mode the browser displays “Saving Page Content…” in the status bar which can take up some time (about 15 sec)  to complete before asking for confirmation to not save the page.There were no such error with either IE7 or FireFox.

Cause

SBN_CallBackHandler() client function of SaveBeforeNavigationControl is not called as it supposed to. It looks like the implementation of XMLHttpRequest object in IE8 is somehow different from the previous release

Solution: There are three different solution

1) Change IE8 configuration parameter

Click -> tools -> Internet Options -> Advanced (tab)  and uncheck

Enable native XMLHTTP support (checked by default)

(This solution not worked with me but some blogs say thats ok )

2) Edit
\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES\PublishingConsole.ascx
and remove this component.
<PublishingWebControls:SaveBeforeNavigationControl id=”sbn1″ runat=”server”>
< / PublishingWebControls:SaveBeforeNavigationControl>
And also did not work for me !!

3) Add javascript to your page:

<script type=”text/javascript”>
_spBodyOnLoadFunctionNames.push(“UnloadHandler”);
function UnloadHandler()
{
document.body.onUnload = “”;
window.onbeforeunload=””;
}
</script>
Thats all folks…
Advertisement

About bpostaci
Escalation Engineer in Microsoft.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: