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

RadGrid in Popup javascript error in IE

3 Answers 138 Views
Window
This is a migrated thread and some comments may be shown as answers.
Adrian
Top achievements
Rank 2
Adrian asked on 12 Jan 2009, 01:43 PM
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.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Jan 2009, 02:14 PM
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.
0
Adrian
Top achievements
Rank 2
answered on 13 Jan 2009, 02:42 PM
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.
0
Georgi Tunev
Telerik team
answered on 14 Jan 2009, 09:11 AM
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.
Tags
Window
Asked by
Adrian
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Adrian
Top achievements
Rank 2
Share this question
or