Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Lahore Pakistan
    Posts
    27
    Vote Rating
    1
    Shafaq kazmi is on a distinguished road

      0  

    Default Ext.EventManager "beforeunload" - Issue on FF

    Hello,

    I am using below code in ExtJS version 4.2.1.883.

    Code:
    Ext.EventManager.on(window, 'beforeunload', function () { alert("1")})

    When I call it in FF, it throws error in console
    ns_error_not_available

    Any help?

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,821
    Vote Rating
    132
    Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light

      0  

    Default

    I couldn't find any reports of this error with 4.2.1. In which version of Firefox are you seeing this?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Lahore Pakistan
    Posts
    27
    Vote Rating
    1
    Shafaq kazmi is on a distinguished road

      0  

    Default

    I have verified it on FF 24 & 36.0

  4. #4
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,821
    Vote Rating
    132
    Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light

      0  

    Default

    Thanks. I'm not seeing it in Firefox 36. Can you post a test case which displays the behavior?
    https://fiddle.sencha.com/#home
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Location
    Lahore Pakistan
    Posts
    27
    Vote Rating
    1
    Shafaq kazmi is on a distinguished road

      0  

    Default

    @Gary:

    There is no specific code. I just used below code and it throws exception.
    Code:
    Ext.EventManager.on(window, 'beforeunload', function () { alert("1")})
    Is there any possibility of FF plugin/setting? If so any solution?

  6. #6
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,821
    Vote Rating
    132
    Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light

      0  

    Default

    I see it now. I'll move this to the Bugs forum so it can get looked at.
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  7. #7
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    5,821
    Vote Rating
    132
    Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light Gary Schlosberg is a glorious beacon of light

      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  8. #8
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,601
    Vote Rating
    753
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default

    This isn't a bug, the browser is preventing you from doing it.

    See: https://developer.mozilla.org/en-US/...onbeforeunload
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2