jQuery UI Widgets Forums Dialogs and Notifications Window Modal window and multiple close events

This topic contains 2 replies, has 2 voices, and was last updated by  Albert 10 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Albert
    Participant

    Hi,

    I have a modal dialog, that I open and close for the user to answer different questions. The window is create much like the modal dialog example under “Events” under the jqxwindows samples on the demonstration page. It has “OK” and “Cancel” buttons. I listen on the ‘close’ event to find out what the user pressed.

    My problem is that the ‘close’ handler is invoked multiple times. To be precise it is called as many times as many times as the dialog has been shown on each close. The first time the user click a button the ‘close’ eventhandler is called once. The next time it is called twice and so on. The events passed to the handler have the same timestamp in each “round” after closing the dialog,

    What am I doing wrong ?

    — Albert


    Dimitar
    Participant

    Hello Albert,

    It is possible that you bind to the same event multiple times, but we would need a sample code to be able determinate the source of the issue.

    Best Regards,
    Dimitar

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


    Albert
    Participant

    Thank you, Dimitar. Your analysis was spot. Problem solved.

    — Albert

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

You must be logged in to reply to this topic.