Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

AJAX Call make SP to show the "Are you sure you want to leave this page" dialog box

$
0
0

Hi all,

I have a problem while editing properties of a Page. We have a custom Content Types which includes a field with a custom type (and custom control). The Custom control includes an UpdatePanel. The control is a tree view, so each time we expand a node, there is an AJAX call.

The control is displayed on the page on Edit Mode. When we use the control from Edit Mode, expanding each node result in displaying the dialog box to ask the user if he wants to leave or stay on the page. 

When using the same control from the "Edit Properties" form, expending the nods works perfectly.

Also I couldn't reproduce the problem on FireFox, it only happens on IE.

Using fiddler I could see a difference between the Post requests depending on the above scenarios.

When using the custom Tree View from the Edit Page mode which result into the error, the POST request does not include the

x-microsoftajax: Delta=true

in the request header.

When using FF or the Tree View from the Edit Properties window, the above header is present and the dialog box is not shown.

Does anyone have an idea why I'm not having the the correct header with IE when using the control from Edit Mode?

Cheers,

Séb



Viewing all articles
Browse latest Browse all 11571


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>