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:
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.
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> |
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.