Urgent Help: Access is denied with subdomains

4 posts, 0 answers
  1. Jessie
    Jessie avatar
    26 posts
    Member since:
    Mar 2009

    Posted 08 Mar 2010 Link to this post

    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.




  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 08 Mar 2010 Link to this post

    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.
  3. Lester
    Lester avatar
    13 posts
    Member since:
    May 2009

    Posted 23 Mar 2010 Link to this post

    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
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 26 Mar 2010 Link to this post

    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.
Back to Top