Results 1 to 2 of 2

Thread: Ext.Messagebox is not visible on browser close event.

  1. #1
    Sencha User
    Join Date
    Mar 2017
    Posts
    2
    Vote Rating
    0
      0  

    Default Ext.Messagebox is not visible on browser close event.

    Hi,

    I want to show the message box to user when user clicks on browsers close button, But it doesn't shows the message box. But if I show the javascript alert just after the ext messagebox then I can see both Ext messagebox and javascript alert . Below is code,

    window.onbeforeunload = function(){

    if(someConditionIsTrue){


    showPopUpIfPendingDepsInNewUI();
    }
    some code is here.....
    }

    showPopUpIfPendingDepsInNewUI() function is in another file as below:

    function showPopUpIfPendingDepsInNewUI() {
    Ext.Msg.show({
    title : 'title',
    msg : 'msg',
    buttons : Ext.Msg.OK,
    fn : function(btn) {
    if (btn == 'ok') {
    some code is here
    }
    }
    });
    }

    But window is getting closed and there is no messagebox

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,642
    Answers
    490
    Vote Rating
    284
      0  

    Default

    Not sure why that would be. Are you able to post a runnable test case which exhibits the behavior?

    Lifecycle management for your web apps

Similar Threads

  1. Capture Browser close button event
    By kssen2004 in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 18 Aug 2014, 8:00 AM
  2. MessageBox close action causing visible Menu to hide
    By parky128 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 4 Jul 2013, 5:52 AM
  3. Close icon is not visible
    By farouk in forum Ext: Discussion
    Replies: 2
    Last Post: 7 Sep 2012, 6:04 AM
  4. Handle browser Close event ....
    By barmat.ali in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 13 Dec 2011, 10:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •