1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Noida, India
    Posts
    78
    Answers
    2
    Vote Rating
    2
    jiindal1988 is on a distinguished road

      0  

    Default Unanswered: beforeunload event does not get triggered in Blackberry

    Unanswered: beforeunload event does not get triggered in Blackberry


    Hello, I want to perform some processing as soon as user refreshes browser. I have used the following code:

    Ext.EventManager.on(window, 'beforeunload', function(){
    // doProcessing
    });

    It works fine on iPhone and Android but not on Blackberry.

    Suggest me the technique to detect beforeunload event in Blackberry.

    Any Help is Appreciated.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Blackberry needs to fire it but doesn't so you cannot reliably depend on it. There really isn't much we can do about it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.