1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Delhi, India
    Posts
    94
    Answers
    2
    Vote Rating
    0
    Abhishek Srivastava is on a distinguished road

      0  

    Default Answered: Code executes after Ext.Msg.alert()

    Answered: Code executes after Ext.Msg.alert()


    After alert I want to navigate from that page on press of OK button on alert.
    But navigation happens first and alert comes after that
    How to resolve this issue......

    my code
    Ext.Msg.alert("Hold Applied Successfully");
    Ext.getCmp('mwsViewPort').setActiveItem('tasksPanel', { type: 'slide', direction: 'right' });

  2. Use the "fn" parameter to define a callback function (see the docs). If you want something to happen after they click OK, it should happen in that function. The alert() call itself will return immediately.

  3. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    408
    Answers
    4
    Vote Rating
    17
    jweber will become famous soon enough

      0  

    Default


    Use the "fn" parameter to define a callback function (see the docs). If you want something to happen after they click OK, it should happen in that function. The alert() call itself will return immediately.

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Delhi, India
    Posts
    94
    Answers
    2
    Vote Rating
    0
    Abhishek Srivastava is on a distinguished road

      0  

    Default


    Thanks a lot for the response....
    But fn config property doesnt seems to work correctly in alert()
    So i have used Ext.Msg.show() to solve my purpose...

    Pls confrm if the fn parameter wrks in alert or not?

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar