jQuery UI Widgets Forums Dialogs and Notifications Window Conditional window close

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 12 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Conditional window close #11926

    sdalby
    Member

    Hi,

    I have a window with no close or cancel buttons. It relies totally on ESC and the [X] Close icon in upper right corner.

    This window allows the user to edit some text, and I would like that both pressing ESC and pressing Close icon caused a confirm box to appear asking the user if (s)he wants to close even though contents isnt saved.

    In other words, I need to be called prior to closing the window and to be able to stop window closing if desired.

    But…. I cannot find a -‘Closing’ event, only a ‘Closed’ event

    What is the correct way to handle this? Your window event demo doesn’t have the answer.

    Conditional window close #11990

    Dimitar
    Participant

    Hello sdalby,

    Please refer to the forum topic Preventing closing a wndow for the answer to your question.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.