PDA

View Full Version : [CLOSED] Loading windows' IFRAME url BEFORE showing window..



rthiney
Mar 14, 2014, 12:12 AM
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:



<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() }});

}

Daniil
Mar 14, 2014, 4:05 AM
Hi @rthiney,

Here is a possible solution.
http://forums.ext.net/showthread.php?25670&p=113456&viewfull=1#post113456