1. #1
    Ext User ibralnet's Avatar
    Join Date
    Aug 2008
    Posts
    100
    Vote Rating
    0
    ibralnet is on a distinguished road

      0  

    Default confirm message box

    confirm message box


    Hi all, is there a way to let a messagebox return a value (the selected button) like a native confirm javascipt function ?
    I would like to have something like that, is there a way to make it ?
    HTML Code:
    function () 
    {
        b = Ext.Msg.confirm("","",function () {});    
        if (b = "yes")
            return true;
        return false;
    }

  2. #2
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

    Default


    Hello,
    u can use this code
    Code:
    Ext.MessageBox.confirm('Confirmation', 'Veuillez confirmez ... ?', confirmFunction);
    
    function confirmFunction (btn)
    {
        if (btn == 'yes')
        {
               // To do
        }
    }

  3. #3
    Ext User ibralnet's Avatar
    Join Date
    Aug 2008
    Posts
    100
    Vote Rating
    0
    ibralnet is on a distinguished road

      0  

    Default


    Hi again,
    thanks for your answer, but my need is in my first function, I need to put a confirmation and if this confirmation is yes I return true if not i should return false.

    To have a better idea, this is how I could make it the traditional way without ExtJS:
    HTML Code:
    function myfunction()
    {
         c = confirm("Are you shure you want to ...");
         if(c)
            return true;
         return false;
    }

  4. #4
    Sencha User issameddine's Avatar
    Join Date
    Apr 2008
    Location
    Tunisia
    Posts
    126
    Vote Rating
    1
    issameddine is on a distinguished road

      0  

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