1. #1
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default do something on buttonclick

    do something on buttonclick


    Hi there,

    i have this function:

    PHP Code:
    utilities.msgbox = function(p_title,p_msgp_buttonsp_type){
        
    Ext.Msg.show({
            
    titlep_title,
            
    id'btn',
            
            
    msgp_msg,
            
    buttonsp_buttons,
            
    animEl'elId',
            
    iconp_type,
            
    handler: function(btntext){
                if (
    btn == 'ok') {
                    
    window.location 'index.jsp';
                }
            }
        }); 
    but it's not working. It's not redirecting to the index.jsp. What's the problem here?

    Thx
    Chriz

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,505
    Vote Rating
    52
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    fn not handler

  3. #3
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441
    Vote Rating
    1
    chrizmaster is on a distinguished road

      0  

    Default


    aha,

    thank you very much. By the way, I looked at the debugger (again) but couldn't find something cause I used the wrong function as it seems..

    mhm I cant' find this fn thing in the api. What is this fn and where can I find a good example to learn for the future?

    Thanks

  4. #4

Thread Participants: 1