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

Urgent Help: Access is denied with subdomains

3 Answers 70 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jessie
Top achievements
Rank 1
Jessie asked on 08 Mar 2010, 08:39 AM
Hi,

I had a page called (http://jessie.domain.com/MyPage).

Inside this page, I had a link A to click, after click this link A, it will pop up a page with RadWindow called (Details.aspx).
Inside this Details.aspx, there have a Cancel button. When I click this cancel button, it will hits the error (Access is denied).

<script type="text/javascript"
        function GetRadWindow() { 
            var oWindow = null
 
            if (window.radWindow) { 
                oWindow = window.radWindow; 
            } 
            else if (window.frameElement.radWindow) { 
                oWindow = window.frameElement.radWindow; 
            } 
            return oWindow; 
        } 
 
        function RefreshParentPage() { 
            GetRadWindow().Close(); 
            GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href; 
        }  
</script>



<button ID="btnCancel" runat="server" class="black_button"   
                                style="width:70px; font-size: 11px;" onclick="RefreshParentPage();return false;">Cancel</button> 


May I know how to solve this problem? Thanks.




3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 08 Mar 2010, 01:21 PM
Hello Jessie,

What you report is expected because of the browser security - the browsers do not allow javascript communication and manipulation between pages in different domains or under different protocols. This is not related to RadControls but to general manner of javascript interpretation in the browsers. You can find many more detailed related articles on the net, e.g below:

http://www.devarticles.com/c/a/JavaScript/JavaScript-Security/
http://javascript.about.com/od/reference/a/frame3.htm
http://www.google.bg/#hl=bg&source=hp&q=javascript+security+domains&meta=&rlz=1R2WZPA_enBG347&aq=f&oq=javascript+security+domains&fp=a0599798b4eb5972




Kind regards,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lester
Top achievements
Rank 1
answered on 24 Mar 2010, 12:21 AM
Hello.

in the radwindows samples is supposed that you can show in a window the yahoo.com site, works fine in IE but in firefox it fails with a IIS server error .

error 400 , i see inside the radwindow contents

also i have the following environment.

in http://server1.com/default.aspx  i have  a button to open a radwindow ,  inside the window i want to load a page: http://server2.com/upload.aspx   that is a page with only the radupload control.  

this environment in IE loads the upload.aspx page into the radwindow but fails when i try to show the fileopen dialog to upload a file, in firefox, fails completely showing again the IIS server error 400
0
Georgi Tunev
Telerik team
answered on 26 Mar 2010, 10:20 AM
Hi Lester,

Yahoo is opened fine in RadWindow - you could test that in our live demos as well. The error that you receive - Http Error 400 "Bad Request", however, leads me to believe that the behavior that you experience is not directly related to the RadWindow control. The easiest way to verify that is to open the content page not in RadWindow but in a standard IFRAME - please try that and let me know the results.

Best wishes,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Jessie
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Lester
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or