PDA

View Full Version : How can i hide a tab in the layout center panel



michael
9 Jan 2007, 11:56 AM
I have trying hide a tab with this code:

hideFrames : function(region, panel) {
var panelExists = layout.getRegion(region).getPanel(panel);
if(!panelExists){return;}
panelExists.hidePanel(region, panel);
}

But benerate the exception: Object not suport property or method.... How can i do it????

Animal
10 Jan 2007, 12:43 AM
Have you tried the first thing most programmers would do, and stepped through it in a debugger, checking that the variables contain the things you think they should before whinging here?

michael
10 Jan 2007, 6:39 AM
well.. before i do this, and i see no properties or functions to hide the panel...

michael
10 Jan 2007, 6:49 AM
It's cuz i create iframes to put in panels, and i not want lost the state of iframe when is reopened, and unique method existent is "REMOVE", but when i revome the panel he remove the iframe too.

Animal
10 Jan 2007, 7:07 AM
Sorry, I can't understand that sentence.