More in this section

Forums / Developing with Sitefinity / Suppressing Warning on Refresh

Suppressing Warning on Refresh

2 posts, 0 answered
  1. Chris
    Chris avatar
    37 posts
    Registered:
    18 Jan 2012
    31 Jul 2012
    Link to this post
    We have a widget that modifies data in the page_node table, and were seeing that it wasn't refreshing properly to include the new title of the page. The thought was refreshing the page would do the trick, and it does, but before the page actually refreshes you get the standard "This page is asking you to confirm that you want to leave - data you have entered may not be saved." popup.

    The data saves fine when you click "Leave This Page", but it is confusing our users. My question is: is it possible to suppress this warning on a small scale? Specifically, it would be in the control designer of a widget, so it would be in that particular designer's javascript file.

    Thanks,
    Chris
  2. Chris
    Chris avatar
    37 posts
    Registered:
    18 Jan 2012
    01 Aug 2012
    Link to this post
    Never mind, we were able to get around this with some Javascript trickery.

    Thanks,
    Chris
2 posts, 0 answered