Hi, i already know what the problem is, when you click a tab module (email, calendar, phpbb3, etc), creates a instance of the panel in this module in the case of phpbb3 module it executes the constructor in MainPanel.js, but if you click another module and click the phpbb3 module again it is already instanciated. ¿there is a way to clear, delete or destroy this instance when you click another module (When i click the phpbb3 module for first time i see the module loading but the second time it is already loaded i want that every time i click the module start from scrach)?
I think this will be easy, but is a pain in the a....
this is what i have in my Portlet.js
this.on("rowdblclick", function(grid, rowClicked, e){
GO.mainLayout.tabPanel.setActiveTab(9); // i open the phpbb3 tab
var p = GO.mainLayout.getModulePanel('phpbb3'); //i get the panel created in the MainPanel.js file
p.destroy(); //here i kill the panel
//at this point it works because the panel is distroyed, but when i try to create a panel with google inside
//nothing happends, maybe some its wrong.... help
//This is the same code as MainPanel.js file but with the difference of the redirect2.php
GO.moduleManager.addModule('phpbb3', GO.panel.IFrameComponent, {
title : GO.phpbb3.lang.forum,
iconCls : 'go-tab-icon-forum',
url:GO.settings.modules.phpbb3.url+'redirect2.php',
border:false,
id:'phpbb3'
});
}, this);
and this is my redirect2.php
//the redirect.php has the location of phpbb3
<?php
require('../../Group-Office.php');
header('Location:
http://www.google.co.ve');
?>
So if i click directly in the phpbb3 tab it will be open the phpbb3 forum page, with an redirect.php, if i click the post in the portlet i will be opened the phpbb3 tab but with google... My code does not work and i dont have idea why not work.
Regards.