I have some code similar to:
var oWnd = $find("<%=RadWindow1.ClientID%>");
oWnd.setUrl('Page1.aspx');
oWnd.show();
after window is closed, script is sometimes executed again:
var oWnd = $find("<%=RadWindow1.ClientID%>");
oWnd.setUrl('Page2.aspx');
oWnd.show();
When popup window is displayed a second time it briefly displays the contents for Page1.aspx before postback is completed and window is refreshed.
How do I avoid this?
I'd either want no contents to be shown in popup window until page has been fetched, or delay displaying popup until refresh has completed.
Did try DestroyOnClose as a way of clearing the previous results but this doesn't seem to work as $find returns null second time it is called.
Thanks
Keith
var oWnd = $find("<%=RadWindow1.ClientID%>");
oWnd.setUrl('Page1.aspx');
oWnd.show();
after window is closed, script is sometimes executed again:
var oWnd = $find("<%=RadWindow1.ClientID%>");
oWnd.setUrl('Page2.aspx');
oWnd.show();
When popup window is displayed a second time it briefly displays the contents for Page1.aspx before postback is completed and window is refreshed.
How do I avoid this?
I'd either want no contents to be shown in popup window until page has been fetched, or delay displaying popup until refresh has completed.
Did try DestroyOnClose as a way of clearing the previous results but this doesn't seem to work as $find returns null second time it is called.
Thanks
Keith