This is a migrated thread and some comments may be shown as answers.

[Solved] RadWindow and IFRAMEs

1 Answer 369 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mark DeMichele
Top achievements
Rank 1
Mark DeMichele asked on 08 Apr 2008, 08:50 PM
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?


<%@ 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> 




1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Apr 2008, 08:28 AM
Hello Mark,

This is a general problem which is not directly related to the RadWindow control. You must close the IFRAME like this:
<iframe id="ViewWizardSummaryIFrame" width="20" height="20"></iframe> 

and you will not experience this problem.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
Mark DeMichele
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or