Access Denied JS Error When opening in IFrame

6 posts, 0 answers
  1. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 27 Jan 2010 Link to this post

    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





  2. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 27 Jan 2010 Link to this post

    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
  3. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Jan 2010 Link to this post

    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.
  4. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 28 Jan 2010 Link to this post

    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







  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 28 Jan 2010 Link to this post

    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.
  6. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 28 Jan 2010 Link to this post

    Sure!
    Thanks for your time and effort on the same.

    Best Regards,
    Veenu Munjal
Back to Top