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

[Solved] Script Error when using controls in iFrame

2 Answers 178 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Syed
Top achievements
Rank 1
Syed asked on 14 Jul 2009, 10:00 PM

I just installed the Q2 2009 and getting error on every control in iFrame. I created a new project from scratch and found same problem.  Here are my two pages.

%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApplicationTest._Default1" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
     <IFRAME id="ReportFrame"  name="ReportFrame" runat="server" frameBorder="no" width="100%"  scrolling"auto" height="90%" src="iFramePage.aspx" > 
       </IFRAME> 
    </div> 
    </form> 
</body> 
</html> 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="iFramePage.aspx.vb" Inherits="RadControlsWebApplicationTest.iFramePage" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
      
        <telerik:RadComboBox ID="RadComboBox1" Runat="server">  
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"   
                    Value="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"   
                    Value="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"   
                    Value="RadComboBoxItem3" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4"   
                    Value="RadComboBoxItem4" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5"   
                    Value="RadComboBoxItem5" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6"   
                    Value="RadComboBoxItem6" /> 
            </Items> 
        </telerik:RadComboBox> 
      
    </div> 
    </form> 
</body> 
</html> 
 
 After running Default.aspx whenever I click on combo box i got  Javascript Error "Invalid argument". Running iFramePage directly everything works fine.

2 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 15 Jul 2009, 11:52 AM
Hi Syed,

Thank you  for contacting us.

I suggest you try setting the frameBorder property of the frame to be an integer. For example - "0" instead of "no".

Please read the following forum post for more details - AJAX 1.0 problem with frameset.

Hope this helps.

Greetings,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Syed
Top achievements
Rank 1
answered on 15 Jul 2009, 03:56 PM
Thanks Paul, It works, now another problem how to fix the height thing. I dont want scroll bar on Iframe page. Setting height 100% and scrolling = no , still not showing the whole page. The iframe is showing only 10% or 20% on screen. What you suggest what I should use instead of iframe.
Tags
Ajax
Asked by
Syed
Top achievements
Rank 1
Answers by
Paul
Telerik team
Syed
Top achievements
Rank 1
Share this question
or