Mar 14, 2014, 12:12 AM
[CLOSED] Loading windows' IFRAME url BEFORE showing window..
Hi Guys...me again ;)
I may have asked before, but is there any way that I can "background" load a window, before showing it?
I have a window defined in markup, that I load a dynamic URL with specific params:
clicks the link... how can I do that?
I may have asked before, but is there any way that I can "background" load a window, before showing it?
I have a window defined in markup, that I load a dynamic URL with specific params:
<ext:Window runat="server" ID="winEdit" Flex="1" Title="Editor" Hidden="true" Icon="Pencil" TitleAlign="Center" Resizable="true" ButtonAlign="Left" Modal="true" Width="850" Height="200"
Maximizable="false" DestroyContent="true" AutoScroll="false" Constrain="true" Closable="false">
<Loader ID="Loader1" runat="server" AutoLoad="false" Mode="Frame" RemoveAll="true">
<LoadMask Msg="Loading..." ShowMask="true" />
</Loader>
<Buttons>
<ext:Button ID="SaveButton" runat="server" Icon="Disk" Text="Ok" Disabled="false">
</ext:Button>
<ext:Button ID="btnCa" runat="server" Icon="Decline" Text="Cancel">
<Listeners>
<Click Handler="#{winEdit}.close();" />
</Listeners>
</ext:Button>
</Buttons>
</ext:Window>
I load, then show the window... the window comes up quickly, with the loading msg... I want it to be already loaded when the user clicks the link... how can I do that?
function OpenWindow(windowType)
{
#{winEdit}.load({url:windowType + '.aspx',
params:{'portfolioId':#{hidPortfolioId}.getValue(),
'documentId':#{hidDocumentId}.getValue(),
'fundId':#{hidFundId}.getValue()
'y':#{hidY}.getValue(),
'q':#{hidQ}.getValue() }});
}
Last edited by Daniil; Mar 19, 2014 at 8:50 AM.
Reason: [CLOSED]