RadGrid in Popup javascript error in IE

4 posts, 0 answers
  1. Adrian
    Adrian avatar
    12 posts
    Member since:
    Jan 2009

    Posted 12 Jan 2009 Link to this post

    Hello,

    I am having some difficulties with a popup window that contains a rad grid. When the page loads, the rad grid is shown, and after that, when ever i try to click anywhere within the window's area, i get a javascript error 'Access is denied'. The page that contains the grid is in a different domain and i know that i can't do any cross domain scripting. But i have no script in which i am trying to access the parent page.
    This error is only encountered in IE (IE v7), in Firefox and Safari everything is ok.
    If in the same window i open other pages (e.g. Google), it's no problem.

    This is the page that opens the popup:
     <telerik:RadWindowManager ID="RadWindowManager" runat="server"
            <Windows> 
                <telerik:RadWindow Skin="Gray" Behaviors="Close, Maximize" RestrictionZoneID="RestrictionZone" 
                    ID="RadWndOH" VisibleOnPageLoad="false" Title="Order History" runat="server" 
                    Width="300px" DestroyOnClose="true" OnClientActivate="OnClientActivate"
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 
     
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
     
            <script type="text/javascript"
                function OnClientActivate(sender) { 
                    //get a reference to the RadWindow object 
                    oWnd = sender
                    if (oWnd != null) { 
                        oWnd.maximize(); 
                    } 
                } 
                function ShowOrderHistoryPopup(navigateUrl) { 
                    var wnd = window.radopen(navigateUrl, 'Order History'); 
                     
                    wnd.maximize(); 
                    return false; 
     
                } 
            </script> 
     
        </telerik:RadCodeBlock> 
    If i try to debug the error, a file called Telerik.WebUI.WebResource_2.axd is opened and the following code is highlighted  g=e.screenLeft-top.screenLeft-top.document.documentElement.scrollLeft+2.
    I believe that trying to access top.document or top.screenLeft is the problem. But is it the grid or the window that tries to do this?

    I am using C#, ASP.NET 2.0, Telerik 2008.03.1125.20 on IE 7 and Firefox 3 on Windows XP.

    Any ideas? Thank you.
    Adrian.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jan 2009 Link to this post

    Hi Adrian,

    At this point we cannot tell where exactly is the problem - could you please send us in a support ticket a live URL where this problem can be reproduced? Please send us such Url or if not possible - the parent and the content page so we could try reproducing the problem locally.



    Regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Adrian
    Adrian avatar
    12 posts
    Member since:
    Jan 2009

    Posted 13 Jan 2009 Link to this post

    Hi Georgi,

    I will do the thing you asked me to next week, because my system administrator is still in vacation and i don't have the necessary access rights to do it myself.
    I will open the support ticket with the link for this problem first thing next week.

    Thank you.
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Jan 2009 Link to this post

    OK Adrian,

    I will be expecting the Url. In the meantime, if you want, you can send me in a support ticket the content page (the one that you load in RadWindow) if you have access to it. I will examine it and if I notice something that could be the reason for the problem, I will let you know.


    Greetings,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top