Hi,
For some reason, if an IFRAME is present on an ASPX page with a RadWindow declared, the window cannot be detected. This problem happens in both FF and IE7.
In the code below, oWnd always returns null. If the IFRAME line is commented out, the popup appears fine when the link is clicked on.
Any idea what might be the problem?
For some reason, if an IFRAME is present on an ASPX page with a RadWindow declared, the window cannot be detected. This problem happens in both FF and IE7.
In the code below, oWnd always returns null. If the IFRAME line is commented out, the popup appears fine when the link is clicked on.
Any idea what might be the problem?
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="testradwindowiframe.aspx.cs" Inherits="Test_testradwindowiframe" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <html> |
| <head> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <script language="javascript" type="text/javascript"> |
| var oWnd; |
| function Test(wizardID) |
| { |
| oWnd = $find( '<%= TestPopupWindow.ClientID %>' ); |
| oWnd.setUrl('http://www.yahoo.com'); |
| oWnd.show(); |
| } |
| function TestClientCallBack(radWindow, returnParameters) |
| { |
| } |
| </script> |
| <asp:ScriptManager ID="ScriptManager1" runat="server" /> |
| <telerik:RadWindowManager id="Singleton" runat="server" Skin="Vista"> |
| <windows> |
| <telerik:RadWindow ID="TestPopupWindow" runat="server" Height="300" Width="300" |
| DestroyOnclose="false" |
| Modal="true" |
| VisibleStatusbar="false" |
| VisibleTitlebar = "true" |
| NavigateUrl="" |
| Title = "Test" |
| Behaviors="Close,Move" |
| ClientCallBackFunction="TestClientCallBack" |
| /> |
| </windows> |
| </telerik:RadWindowManager> |
| <a href="javascript:void(0)" onclick="javascript:Test(0)">Test(0)</a> |
| <iframe id="ViewWizardSummaryIFrame" width="20" height="20"/> |
| <p>Test Page</p> |
| </form> |
| </body> |
| </html> |