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

Permission Denied Error: when used in iFrame

1 Answer 72 Views
Slider
This is a migrated thread and some comments may be shown as answers.
daman
Top achievements
Rank 1
daman asked on 15 Dec 2008, 11:35 AM
Hi,

I have  a site where a web page is having telerik slider control which is working fine in all browsers.
I have another site say xyz.com where i need to show this page on an iframe.
I have added an iFrame to  a page in xyz.com, it is giving java script error of Permission Denied.

Please help me on this.
As my project is n crucial stage and i need answer to this at the earliest.
with regards
Daman

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 18 Dec 2008, 08:08 AM
Hello daman,
I tried to reproduce the problem you describe, but to no avail. Have a look at the following code that I used to test your scenario:

Default.aspx:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
          
        <telerik:RadSlider ID="RadSlider1" runat="server"></telerik:RadSlider> 
    </form>      
</body> 
</html> 

xyz.aspx:
<!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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <iframe src="Default.aspx" style="width:400px;height:400px;"></iframe> 
    </form> 
</body> 
</html> 

Could you please open a new support ticket and send us a test project, demonstrating the problem, so that we can research on our end what is causing it?

Kind regards,
Tsvetie
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Slider
Asked by
daman
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or