Nov 05, 2009, 11:13 AM
[CLOSED] Reload an iframe within a panel
Hi
I am having a problem, i have a tab panel within a window. To open the window users select an option from a gridpanel, the id of the selected item is then added to the autoload parameters.
The problem that i am having is that i want to set the tab to reload if it has already rendered. I don't want to set ReloadOnEvent="true" as this reloads the tab every time it is selected.
Could you please let me know if there is any way that i can set the tab to reload next time it is selected.
This code is shown below.
thanks
[.aspx]
<ext:Panel runat="server" ID="tabProjectsGrid" Icon="Calendar" Title="Projects" StyleSpec="padding: 6px;">
<AutoLoad Url="ProjectsGrid.aspx" Mode="IFrame" TriggerEvent="show" ShowMask="true" >
<params>
<ext:Parameter Name="IptID" Value="-2"></ext:Parameter>
</params>
</AutoLoad>
</ext:Panel>
[.js]
if (hidIptID.value != zIptID) { // if the id is different
hidIptID.setValue(zIptID);
window.tabProjectsGrid.autoLoad.params.IptID = zIptID;
if (window.tabProjectsGrid.rendered) {
// Set the tab to reload when it is selected!!!
// *******************
}}
</PRE>