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
    411
    Answers
    5
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi