Hi,
I have a function which updates my current views:

Code:
function set_content(newcontent) {
    
    getCurrentContent.hide(); // hide old content
            
    switch(newcontent) {
        case "img_overview":
            getCurrentContent.update(img_overview);
        break;
                
        case "img_product_start":
            getCurrentContent.update(mytest);
        break;
        
        default:
            getCurrentContent.update(img_product_start);
        }
    
    console.log(newcontent); // write log
    getCurrentContent.show(); // show new content
}
This function changes the conten of this variabe:
Code:
var getCurrentContent = new Ext.Panel({                                  
            items: [img_overview]
        });
This works fine so far until I try to update more than one item at once. This is what I wan't to have:

var getCurrentContent = new Ext.Panel({
items: [img_overview, img_product_start]
});
but getCurrentContent.update(img_overview, img_product_start) doesn't work.

Anyone knows how I have to modify my script to update more than one item at once?