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

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


Hi,
According to your post, an error occurred when you used Ajax in SharePoint.
Please do as follows:
1. Try to uncheck the Enable native XMLHTTP support option in IE's advanced options.
Go to Tool->Internet Options->Advanced and disable “Enable native XMLHTTP support”.
2. Use jQuery Ajax to call.
https://api.jquery.com/jQuery.ajax/
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page  it says "the previous page is sending you to: LINK if you do not want to visit this page, you can return to the previous page"

    How to i get rid of the redirect notice it shows up on my safari whenever i try to go to a different page
    it says "the previous page is sending you to: LINK
    if you do not want to visit this page, you can return to the previous page"

    Yeah, this seems to be something to do with Google, not your iPhone. A search on that error found this page:
    http://www.google.com/support/forum/p/Web%20Search/thread?tid=56a3c4b71b3dc1d9&h l=en
    which shows people using lots of browsers on different platforms suffering from it. No definitive solutions though.

  • How do I bring back the "Are you sure you want to delete this photo" dialog box in Iphoto.  I accidentally clicked "never ask again" so it never appears.  I want it back.

    How do I bring back the "Are you sure you want to delete this photo" dialog box in Iphoto.  I accidentally clicked "never ask again" so it never appears.  I want it back.

    The following previous discussion may help: Re: Delete Confirmation Warning.  I want back.

  • Are you sure you want to leave this page?

    Periodically I start to get "Are you sure you want to leave this page?" message in OVM Manager 3.2.1 - if I click no, I get the message again. If I click yes, it logs me out... Often without any action from my side - or in the middle of my activities (so it doesn't look like it is related to any timeout).
    I have disabled timeout in Tool and Resources - Preferences, so it is not suppose to log me out at all.
    Any idea what is going on and how to fix it?
    Thanks,
    Alex

    Very painful & I am also interested in a fix for this.
    On 3.2.1 I am also getting this message though I only notice it when I am idle by not clicking on anything on the page.
    On OVM 2.x I like to leave my screen open and it re queries the statuses. I like this UI more but the timeout or whatever is very annoying.
    While I haven't been timed out right after recently doing something, when I launch jobs that take awhile I like that it shows me how much progress has made (cloned 101G of 500G etc)... Once you get timed out you lose the status and I don't see a way to get that dynamic job progress feedback anywhere without logging into the OVS and querying the file sizes as they progress on the file system.

  • "Are you sure you want to leave this page?" on saving Publishing Page

    Hi all,
    we're getting some ... interesting ... behavior in IE.
    Setup:
    We have a page layout based on some content type. Both contain (besides other fields) a DateTimeField which is shown in edit mode.
    When a user clicks "Save" after editing the page, he is presented a modal dialog saying "Are you sure you want to leave this page?" with the options to "stay" or "leave".
    When a user clicks "leave" the following behaviour is as expected (changes are saved, page is working). When a user clicks "stay" he sometimes gets prompted for conflicts.
    As soon as the DateTimeField is removed from the page layout (but is kept in the content type) there are no more such pop-up dialogues.
    This happens only in IE 9/10/11. FF and Chrome work fine.
    Do you have any suggestions, on how to fix this? Not the conflicts part, but the fact that this dialogue box is shown at all.
    - Ben
    Code
    Field Definition
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field
    ID="{401b4dad-f4db-45a8-a111-42ed278a3298}"
    Name="FI_Erstellungsdatum"
    DisplayName="MyDate"
    Type="DateTime"
    Required="TRUE"
    Group="MyGroup"
    Format="DateOnly">
    <Default>[Today]</Default>
    </Field>
    </Elements>
    Reference in Content Type
    <FieldRef ID="{401b4dad-f4db-45a8-a111-42ed278a3298}" DisplayName="MyDate" Required="TRUE" Name="FI_MyDate" Format="DateOnly" />
    Reference in Page Layout
    <SharePoint:DateTimeField FieldName="401b4dad-f4db-45a8-a111-42ed278a3298" runat="server"></SharePoint:DateTimeField>
    Internet Explorer
    I already tried seeting IE (Security) Settings back to deafault and disabling add-ons. It did not help.
    The site is accessed via https and is in the Trusted Sites list in IE.

    Hi SomeTallGuy,
    According to your description, my understanding is that the model dialog appears after you click Save.
    My suggestion as below:
    1. Set the Internet Explorer Security Setting to low.
    2. If you have add your site to trusted sites, try to delete all the browser data, such as cookie, temporary files to test whether it works.
    Best regards,
    Zhengyu Guo
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • How to add for wikipages the popup " are you sure you want to leave this page" on edit

    Our users complain about hitting the backspace button in a wiki page, sometimes the I.E. goes back and loose their changes. I could get a jquery popup but I don't know how to know that the wiki page is in edit mode and not in view mode.Do you know how/what 
    to check with javascript in order to know the mode of the page?
    Thank you
    Christos

    Jquery has a specific function that allows you to add this sort of thing to general SharePoint pages.  I've not tried it in my own environment but some good useful starter information can be seen on a similar thread at Stack exchange.
    See if this is of any use for you
    http://stackoverflow.com/questions/1119289/how-to-show-the-are-you-sure-you-want-to-navigate-away-from-this-page-when-ch?rq=1
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to prevent the "are you sure you want to leave this page?" prompt on Facebook?

    I'm using Firefox 35.0.1. If I make a post on my Facebook timeline that contains a link, when I hit "Post" and the page goes to refresh to add my post to my timeline, it asks if I'm sure I want to leave the page. I've seen that messages on some sites before, for example, if I'm on a forum and I write a post and go to leave the page before hitting submit, it'll ask me that, but I've never seen it on Facebook until a couple of days ago.
    Is there any way to turn this message off? Or even better, can it be turned off just on Facebook? Thanks.

    Thanks, philipp! I guess Facebook must have made some changes to their code, but I'll make the change you suggested and see how it goes.

  • How to fix error message: Are you sure you want to leave this page?  There is currently a request to the server pending. You may lose recent changes by navigating away.

    I have been gettting this error message in safari for 4 days.
    Any ideas? This is beyond frustrating. I haven't installed or downloaded anything in this time.
    Thanks!

    Unless you have an application open like Microsoft Word and have made changes to some work you have done go up to file and SAVE then you can leave the page wwithout any problems. this message comes mostely when you are in a browser. Just leave the page.

  • Forwarding my unanswered calls to my mobile showing the E1 no on my mobile while i want to showing the caller mobile ID.

    hi guys,
    if i have a coming call from mobile to my extension and i forwarding my unanswered calls to my mobile showing the E1 no on my mobile while i want to showing the caller mobile ID.
    is the ""gateway Calling Party Selection* Originator"" configuration on cucm will solve it or no

    Hi,
    Setting the Calling Party Selection to Originator will send the Original Calling party number to your provider. If your provider accepts any calling number, it is well and good.
    you may also need to enable the other setting 'Redirecting Number Delivery Outbound' and Redirecting Party Transformation CSS to ensure the IP phone's number is sent to provider as a Redirecting number along with the original calling number and final called number.
    Please collect 'debug isdn q931' for a test call to verify how these numbers are sent to provider.
    Thanks
    Suresh
    Please rate all the helpful posts

  • Downloaded iBooks on my Macbook Pro but when I tried to sync it on my iPhone, this appeared: "Are you sure you want to sync books? All existing songs, movies and TV shows on the iPhone "My iPhone" will be removed". Love the iBooks as well as music. HELP!

    Downloaded iBooks on my Macbook Pro but when I tried to sync it on my iPhone, this appeared: "Are you sure you want to sync books? All existing songs, movies and TV shows on the iPhone “My iPhone” will be removed". Love the iBooks as well as music. I really don't want to loose my music. HELP!!!

    From the message you are receiving, it sounds like you either, 1) haven't synced your iPhone with that computer before, 2) are using two different iTunes accounts, or 3) both.  If you have purchased music or movies through your iPhone with a certain iTunes account and purchased books through iBooks on your MacBook through a different iTunes account then there is no having both on the phone. 
    Apple doesn't allow content from two different accounts on a device at the same time.  Also if two "libraries" have been created, one on the iPhone and one on the Macbook then syncing will erase data that is not associated with that particular library. 
    If you are using the same iTunes account for both, then you should be able to redownload any purchased items (music, books, etc.) from iCloud, assuming you have set that up.
    I hope this helps!

  • There are purchased items on the iPhone "asingh's iPhone" that have not been transferred to your iTunes library. You should transfer these items to your iTunes library before updating this iPhone. Are you sure you want to continue?

    When I am trying to upgrade my iphone to IOS7.0.2 by connecting my my iphone and macbook, it shows "There are purchased items on the iPhone “asingh’s iPhone” that have not been transferred to your iTunes library. You should transfer these items to your iTunes library before updating this iPhone. Are you sure you want to continue? ".  I hit the same issue and lost a lot of apps from my iphone. Can someone help on how to resolve this issue? I can automatically upgrade my software on the iphone but how shall I resolve any future updates of "Apps"?

    I appreciate the answer, but what you describe is not entirely accurate.  First, to even see view, you have to enable the menu by clicking on the icon in the upper left.  View allows you to show the sidebar.
    Second, you will NOT see your devise listed in sidebar or anywhere else.  Instead, you have to click on "devise" from the sidebar menu, wait a minute, and then it will finally show up under "devise."   Or maybe it just takes a minute to show up whatever you do. 
    Third, right clicking on your devise will take you to a menu with "transfer my files" on it, but then iTunes will refuse to make the transfer.  Instead, it will tell you that <your apps> on your <devise> could not be transferred to iTunes "because you are not authorized for it on your computer."  Apple unhelpfully suggests going to store> authorize this computer.  There is a "store" menu item on the sidebar, but it has no "authorize this computer" sub-menu.  Instead, go to the horizontal menu at the upper left, and THERE you will find "store" and the "authorize this computer" sub-menu.  Now you can transfer your files, to who knows where.
    My iPhone 5 is my first Apple devise. So far my experience has been, to do A, which must be done right now, you must first do B.  To do B you must first do C, which is unexplained save in answers in user forums.  To do C you must first do D, which, after several hours of research and puzzle solving, can eventually be done.

  • Are you sure you want to remove existing music, movies, TV shows, books.....No!

    Hi all, iTunes Sync help ...please?
    I bought a MacMini having been a iPhone & iPad user with a winPC for many years and i fail to understand what iTunes wants to do with my suff on my iPhones etc. It appears to want to wipe it and start new and from previous blogs i cant see that this has actually been addressed.
    I have tried to get Apple to call me by logging a case several times but they never ring and then just send me a mail saying we tried to call (they dont) so i am hoping someone can help me...please?
    When i pug my iPhone or iPad in non of the apps appear in the simulation on the second tab and non of my music are there. When i hit 'Sync' a pop up says'Are you sure you want to remove existing music, movies, TV shows, books, and tones from this iPhone and sync with this iTunes library?
    Music, movies, TV shows, books, and tones synced to “Chr15h’s iPhone5” from other iTunes libraries will be removed and items will be synced from this iTunes library.'
    I realy dont want to loose all my data. Can anyone help or point me in the right direction...please?
    Thanks (i hope) Chr15h

    Zesty.Zooma wrote:
    But will I be able to keep the data stored in the applications, photos, books and also the sorting and the folder arrangements the same way they were, after erasing all the data and synchornizing with the new library?
    That is the aim of the process set out here: Recover your iTunes library from your iPod or iOS device.
    tt2

  • Are you sure you want to change the extension from... BLOCKS Finder Editing

    This is weird and is driving me nuts, but some Macs do not allow further Finder editing of file or folder names if I change their names (usually including numbers, dots and so on) in such a way that I receive the warning:
    Are you sure you want to change the extension from..?
    After I confirm that I want to change the name, the Finder does it but gets locked for editing (I can do other things) and does not allow any further file or folder editing until I force quit of Finder or reboot the Mac.
    I have found that if right after confirming that I want to change the name I select the file and hit return (which selects its name), no problem arises. But I must do it in one or two seconds, or else it will be too late.
    IN SUMMARY:
    1. Change file or folder name including numbers and dots at the end.
    2. Get the message "Are you sure you want to change the extension from..."
    3. Confirm that I want to change the name.
    4. FROM NOW ON, I CANNOT CHANGE THE NAME OF ANY FILE OR FOLDER UNTIL I FORCE FINDER QUIT. Unless of course I do the trick indicated above real quick!
    Any hint? Any way to know what is going on? This could be a bug of Mac OS X 10.4.x or earlier or a problem with a third party application. But how to know what is going on to prevent it? As said, some Macs show this issue, but not others.
    Note: some related issues on this section searching for:
    Finder Loses Keyboard Input
    or
    Sure change extension
    For instance:
    http://discussions.apple.com/thread.jspa?messageID=1974048
    http://discussions.apple.com/thread.jspa?messageID=1466505
    Hint: some file or folder name changes are more prone to cause the issue than others. For instance, renaming a folder (and confirming it) as:
    Testing.r00
    brings the bug 100% of the times.
    Any idea of what is going on? Thanks.

    The message is a warning that you are doing something that the OS thinks is going to possibly cause a problem. You are creating the situation and the OS is doing nothing other than what you are asking it to do.
    I don't know any exact answer why you can't access your files, but I do know that there are a few characters and things that will cause problems because they mimic names of invisible files. When you make a name that is close to being the same it can treat the file as the special one... meaning you can only access it via Terminal.
    Ones you cannot use at all: the colon (:), slash (/), single or double period as first characters. (taken from Finder Help with a naming files search) It is best to stay away from any special characters as a rule. Also avoid using a period and 3 character suffix unless it is one that you are purposefully assigning so the file belongs to an application.
    That said... even with the over 200 applications on my system I couldn't repeat your Testing.r00 problem. So, I don't know if it may be application related or not.

  • HT1178 I bought Time Capsule specifically to back up my computer at work. Only my computer. I completed the steps the best of my knowledge but I got the message, "This device & its network services will be temporarily unavailable. Are you sure you want to

    I bought Time Capsule specifically to back up my computer at work. Only my computer. There are many computers within my department. I completed the steps the best of my knowledge but was unsure of which option to click. I clicked "I want to create a new wireless network". At the onset the instructions said I needed to connect with an ethernet cable, which I did. But I have no desire to connect to the internet, print from it, or have others access. I did deselect guest options, and I did put in passwords. But at the end of the process I got the message, "This device & its network services will be temporarily unavailable. Are you sure you want to continue."
    I was worried this would shut me down and I wouldn't be able to continue to work. I don't necessarily need to connect wirelessly. It is connected via ethernet cable from machine to device.
    Can you advise me how to continue? Did I choose the wrong options?

    I bought an external hard drive called "Seagate Backup Plus" From the Apple store to back up everything on my computer and anything new on my computer. It came with Time Machine. The external hard drive disk had 1 or 2 Terabytes. Time Machine says "next backup: When disk is connected." "Oldest backup: July 2, 2014." & Also "Latest back July, 2."

  • Where is the option are you sure you want to buy?

    Where is the option "are you sure you want to buy?"

    Yes, i found it there. In fact; a logic place...
    The second q. means the way you load upo; dirtectly from the menu share to you tube of first make a QT and from there to the sky.
    I quess there must be no differance but you never know...
    Thanks again.

Maybe you are looking for

  • Acrobat 9.0 Shared Review problem

    Hello, I upgraded to Acrobat 9.0 professional from 8.0 professional, and can no longer create a shared review. I did a complete uninstall of 8.0 prior to the 9.0 installation. I am running Windows XP Professional w/ Service Pack 3 on a Core2 Quad CPU

  • F110 printing through a separate printer

    Hi Guys, How to set up F110 check prints through a different printer other than the local printer. Also does anyone knows how to install drivers in in SAP server so that users can slect different printers. I know its a basis issue. There is no Basis

  • I live in an area with poor data reception. Will the Maps app work without internet access?

    I live in an area with poor data reception. Will the Maps app work without internet access?

  • Parsing a non-standard (LabVIEW) xml file

    I inherited an xml file which does not use the normal LabVIEW schema, where the types would be defined for each value and the number of elements would be defined for an array.  Although a schema file xsl is listed in the xml header, no such file exis

  • Display/Process Initial values

    Hi, I have the following delemma: with data binding, BSP input fields that are blank on the screen will ultimately be assigned internally ABAP initial values. For instance, take fields of type time. The conversion from internal format to string gives