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

Access Denied JS Error When opening in IFrame

5 Answers 211 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Veenu
Top achievements
Rank 1
Veenu asked on 27 Jan 2010, 09:27 AM
Hi,

I need to open my site in Iframe where domain of my site and parent site is different.
i'm getting access denied cross domain error which is obvious ,but when i'm opening RAD Demo site in IFrame its working fine.
There must be some extra configuration you guys have done in your demo site which makes it working fine in different domains. please let me know the same so that i can add that in my site

i have gone through with the following link
Access Denied - Scripting Error
http://www.telerik.com/community/forums/aspnet-ajax/combobox/access-denied-scripting-error.aspx

also
How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0

http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx

But i can't use the above solution as it requires me to replace the RadScriptManager's with the normal ScriptManager
which is not possible in our case as Rad Color Picker is not working properly with normal script manager
also in RAD Demo site you have used RadScriptManger.

I'm attaching sample code i'm using





5 Answers, 1 is accepted

Sort by
0
Veenu
Top achievements
Rank 1
answered on 27 Jan 2010, 09:45 AM
As i'm going through the different forum post realted to the same problem
the telerik team is blaming "MS AJAX framework getLocation method" for this issue
but when i'm debugging the error i got that this error is coming from Telerik.Web.UI.WebResource.axd line 6
"g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2"

please provide the solution asap as site will Go Live soon.

Thanks
0
Peter
Telerik team
answered on 28 Jan 2010, 09:37 AM
Hi Veenu,

Thank you for contacting us and for sending sample sites.

We are having difficulties replicating the problem. Please, review the following video capture which shows that everything works as expected: http://screencast.com/t/Zjg0ODNjN.

Are there any other specific details around this case that we should be aware of?


Kind regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veenu
Top achievements
Rank 1
answered on 28 Jan 2010, 11:10 AM
Hi,
Thanks for reply

I have solved this problem using

How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0

http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx


the main problem was i need to use rad script manager so i have done

 <telerik:RadScriptManager ID="RadScriptManager1" runat="server" >
                <Scripts>
                    <asp:ScriptReference Name="MicrosoftAjax.js" ScriptMode="Auto" Path="~/js/1.0.61025.0/MicrosoftAjax.js"/>
                </Scripts>
            </telerik:RadScriptManager>


the intellisense won't suggest <asp:ScriptReference> tag inside  <Scripts> tag so i added it manually and now its working fine perfectly

the above workaround is required in case of AJAX extension 1.0 and this issue is fixed in AJAX extensions 3.5
so you probably using VS 2008 which automatically upgrades to 3.5
so to recreate the problem make sure you are using
.net 2.0
AJAX extension 1.0
Internet Explorer 6.0







0
Peter
Telerik team
answered on 28 Jan 2010, 02:18 PM
Hello Veenu,

Thank you for sharing the solution with us. Can we convert this support ticket to a forum thread so others may refer to it in case they experience similar problem?

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veenu
Top achievements
Rank 1
answered on 28 Jan 2010, 02:50 PM
Sure!
Thanks for your time and effort on the same.

Best Regards,
Veenu Munjal
Tags
Menu
Asked by
Veenu
Top achievements
Rank 1
Answers by
Veenu
Top achievements
Rank 1
Peter
Telerik team
Share this question
or