Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  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