1. #1
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    barkermn01 is on a distinguished road

      0  

    Default NOOB::: How do i dynamicly update content

    NOOB::: How do i dynamicly update content


    Hi All,

    Im new to ExtJS, Trying to build a dynamic page using Panels,

    so i have 2 questions

    1st. can i load a panel into another panel

    2nd. how do i update the html content of a panel dynamically.

    I have googled and look though doc's but i just cant find an simple answer

  2. #2
    Ext User
    Join Date
    May 2010
    Posts
    2
    Vote Rating
    0
    barkermn01 is on a distinguished road

      0  

    Default


    Done the first one,
    PHP Code:
    var viewport = new Ext.Veiwport({
        
    layout'border',
        
    items:[
               new 
    Ext.Panel({
                    
    title:'Navication',
                    
    applyTo:"menu",
                    
    items:[
                        new 
    Ext.Panel({
                            
    width'100%',
                            
    title'Management',
                            
    collapsible:true,
                        }),
                        new 
    Ext.Panel({
                            
    width'100%',
                            
    title'MySQL',
                            
    collapsible:true,
                        }),
                        new 
    Ext.Panel({
                            
    width'100%',
                            
    title'Apache',
                            
    collapsible:true,
                        }),
                        new 
    Ext.Panel({
                            
    width'100%',
                            
    title'PHP',
                            
    collapsible:true,
                        }),
                        new 
    Ext.Panel({
                            
    width'100%',
                            
    title'DNS',
                            
    collapsible:true,
                        })
                    ]
                })]
        }); 
    Now jsut the second one to do.
    Last edited by barkermn01; 12 May 2010 at 7:12 AM. Reason: Done 1st one

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    In order to update the content area of an Ext.Panel you can use teh update method.
    Aaron Conran
    @aconran
    Sencha Architect Development Team