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.

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.

  • "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

  • 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.

  • 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.

  • 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

  • Computer is automatically prompting "Are you sure you want to shut down....

    On friday i posted that the iBook was restarting itself, now it is getting a tad bit clearer, sometimes when I boot up, i can hear the chime several times, sometimes it will make it to the desktop and then shut off immediately. Then I noticed while i used Word the prompt "Are your sure you want to shut down..." I pressed cancel. 5 seconds later, the same. Thats when I realized, there must be something wrong with the iBook that is either giving the command to shut down or that the button is...faulty?. I press the button and the prompt does appear, but, the button feels firm. Like most Mac users I pamper my mac, and nothing rattles inside. What can be happening? How can I diagnose what is wrong. I have tons of work and I don't feel like dropping the iBooK at Apple right now.
    Paul

    Sounds like a hardware issue to me, as did your first post. I know you don't want to but I think your best bet is to take it to the shop. First though, I would try and backup everything I could.

  • When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    When you open a new browser tab, underneath the box to type in what you are looking for is the recently visited list. I want to disable or delete this list...how do I get rid of this list???

    The drop-down list displays items from your History and/or Bookmarks.
    You can control what shows (or nothing at all): Options > Privacy, "Location Bar" section. Options are:
    *History and Bookmarks
    *History
    *Bookmarks
    *Nothing
    See --> https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • HT5622 how can I find what the charges aree to my credit card from the apple store? I get multiple charges every month and don't know what they are for...I want to cancel whatever is being charged to me...how do I do it?

    how can I find what the charges aree to my credit card from the apple store? I get multiple charges every month and don't know what they are for...I want to cancel whatever is being charged to me...how do I do it?

    Have a look at this link
    http://support.apple.com/kb/ht2727

  • If javascript can no longer be disabled - how do I leave a website that asks the "are you sure you want to leave this site" pop up question without a yes choice

    Given that the turn off javascript option will be disabled - how do I close a page that does not allow me to leave by giving a "are you sure you want to leave" pop up question but then redirects to itself where it again asks that question perpetually?
    The only way to kill a page like that sofar was to disable javascript and then close the tab.
    Now I will have to close the browser - and possibly loose all the tabs I have open.
    I want a javascript quick switch - allowing me to easily disable javascript for any page at will.
    (esp for some of my older, slower netbooks)
    Or at least a "FORCE CLOSE" option for malicious webpages.

    Hi ronc2, there isn't a specific setting for this. Firefox's built-in JavaScript settings allow you to control several aspects of scripts*, but unfortunately not this one.
    I previously tried to find some other options for individually turning off this event, but I couldn't find a way. Someone might be able to create an add-on to solve this problem, but it will take someone cleverer than I.
    Extensions that disable scripts on a site-specific basis:
    * If you regularly visit some sites which do this, you can block JavaScript on that specific site using the YesScript extension. Unfortunately, other script-based functionality will be blocked as well.
    * YesScript does not preemptively block scripts on every site. If you have to visit a lot of random sites and want to take a paranoid approach of having scripting blocked until you see as much of the site as you can see without running scripts, then the NoScript extension would be for you. But even then it's "all or nothing".
    ''* These include: JavaScript enabled yes/no, override right-click menu yes/no, change order of windows yes/no, move and resize windows yes/no, close windows yes/no, specific features of pop-up windows, change images yes/no, detect copy/cut/paste and modify selection yes/no.''

  • How to add text to the summary

    I wanted to add a text to my summ total on my report.
    The forum told me to add a boiler plate text item. However this item displays on every page.. I want it to only display where the summary is. I tried using anchors but it will not attach to the summary item.. Help
    howard

    Hi Howard,
    I guess you are referring to this post:
    How do i add text to the summary
    First make sure that you place the boilerplate exactly where you had (or currently have) the summary column, ie, in the SAME frame or repeating frame.
    Second, open the property inspector for your summary column. Find the properties "Print Object On" and "Base Printing on", and make sure that both of these are the same for your boilerpate as for your summary column.
    Navneet.

  • HT5654 how to add videos to the ipad using the latest version of itunes

    how to add videos to the ipad using the latest version of itunes ?

    Hello zaraa90,
    After reviewing your post, I have located an article that can help with syncing content. It contains a number of troubleshooting steps and helpful advice for the issue you are experiencing:
    Sync your iPhone, iPad and iPod with iTunes using USB
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • I keep getting the an Alexa Sparky pop-up each time I open Firefox, it does not provide a "no" option... how can I permanently stop the popup?

    Every time I open Firefox, I get a pop-up asking me to install the Alexa Sparky toolbar--which I do not want. The pop-up box does not offer an option to say "no" or "do not ask me again", which is VERY annoying. How can I permanently stop the popup?

    '''This worked for me:'''
    How to disable extensions, Personas, and plugins
    Disabling an add-on will turn it off without removing it:
    At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP), and then click Add-ons. The Add-ons Manager tab will open.
    In the Add-ons Manager tab, select the Extensions or Appearance or Plugins panel.
    Select the add-on you wish to disable.
    Click the Disable button.
    Click Restart now if it pops up. Your tabs will be saved and restored after the restart.
    To re-enable the add-on, find it in the list of Add-ons and click Enable, then restart Firefox.

  • New entry for "What the Experts are saying.." on Spatial OTN

    http://www.oracle.com/technology/products/spatial/customer_success.html
    Hello, released last month was a review of eSpatial iSMART product suite which works and expands on Oracle Spatial. This was completed by Professor Frederick Limp for GeoWorld and is available openly. Please add reference to the article on the "What the Experts are saying.." on Oracle Spatial OTN page (see above)
    The tag line should read...
    New Product Review, eSpatial iSMART. - October 2004, GeoWorld Article (HTML)
    W. Fredrick Limp, Director of the Center for Advanced Spatial Technologies (CAST), Arkansas, reviews eSpatial's iSMART(R) Product Suite for Oracle Spatial.
    The link to the article is...
    http://www.geoplace.com/uploads/featurearticle/0408qt.asp
    Thanks
    Alan
    Alan Lawless
    e¦Spatial
    t: 01 8675 524
    f: 01 8675 599
    m: 087 412 6156
    [email protected]
    www.espatial.com

    The Three Best Alternatives for Security Questions and Rescue Mail
        1. Use Apple's Express Lane.
              Go to https://expresslane.apple.com ; click 'See all products and services' at the
              bottom of the page. In the next page click 'More Products and Services, then
              'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Forgotten Apple
              ID security questions' and click 'Continue'. Please be patient waiting for the return
              phone call. It will come in time depending on how heavily the servers are being hit.
         2.  Call Apple Support in your country: Customer Service: Contacting Apple for support or
              Apple ID- Contacting Apple for help with Apple ID account security. Ask to speak to
              Account Security.
         3.  Rescue email address and how to reset Apple ID security questions.
    How to Manage your Apple ID: Manage My Apple ID

Maybe you are looking for

  • Can't boot HDD. "PXE-M0F: Exiting Intel PXE ROM." Error

    Hello, and thank you in advance for your help. My Toshiba Satellite U840 is receiving the following error at startup: Check cable connection! PXE-M0F: Exiting Intel PXE ROM. No bootable device -- insert boot disk and press any key I had a Hitachi HTS

  • Error in deploying Visual Composer model

    Hi experts. We recently got problems with deploying our visual composer applications. It has worked well before. The compilation excecutes perfectly, but when the deployment starts I get the error: "Error in executing a process for Flex compilation,

  • I just got a new ipad 2 but I having trouble setting it up, can someone help me. thank yoy

    I just got a new ipad 2 but I'm having trouble setting it up, can someone help me?

  • Oracle Apps per_people_f data corruption

    Hi, I am stuck up with some problem with payroll report. Users complained that there is an ex-employee appearing in the payroll report. I run this sql and the user appears in this query. select      pap.PERSON_ID,      payf.PAYROLL_NAME PAYROLL,     

  • Can i use XML publisher in a c/s enviroment?

    Hi. I'd like to know whether it's possible to use XML Publisher in a C/S enviroment. We're still using reports and forms 6i in C/S. I'd like to know whether one can use the client version of XML to build custom reports (invoices for instance). Thanks