Rad window is not closing with https

4 posts, 0 answers
  1. jalpesh.vadgama
    jalpesh.vadgama avatar
    7 posts
    Member since:
    Jul 2007

    Posted 30 Mar 2011 Link to this post

    Hello Support Team,

    We are having a rad window on secure page and its working fine except its closing. It's not able to find the current window with https
    Following is code for that.

    function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;

    function fnCnCancelData() {
            var oWindow = GetRadWindow();


    It's working fine if We remove Https but if we put Https its giving following error

    Cannot read property 'radWindow' of undefined in GetRadWindow() function.

    We are using telerik asp.net ajax 2010 license version. Please do reply on this as due to this we are enable to launch our client and it's a kind of 911 emergency.

    Best Regards,
  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 01 Apr 2011 Link to this post

    Hi jalpesh,

     We are aware of a problem when one of the page is under HTTP and the other one - under HTTPS. However, this problem causes a permission error. This problem is not directly related to the RadWindow but to security mechanisms and how the browsers work. If e.g your main page is under http while the page loaded in the RadWindow is under https and the different protocols are treated as if they were different domains. This is called cross domain scripting and it is a security feature in browsers so there isn't a way to disable it. This being said you cannot manipulate the RadWindow's content page if you do not have both the pages in the same domain and under the same protocol. More information can be found in the net, e.g the following search:


    The RadWindow is actually an IFRAME which is on the main page and it is not another window object - as a result you have one main page and an IFRAME with another page loaded in it. When you close the RadWindow you hide the IFRAME and this IFRAME always resides on the same main page - thus even if you close it from inside the content page, "closing" it means that you manipulate the IFRAME which is on the main page. This is how the things work and you can test with a standard IFRAME as well - the result will be the same.

    This cannot be workarounded and even if this was possible, it would lead to very big risk of hacker attacks.

    If this is not the case, please provide a live url along with detailed reproduction steps and we will examine it and we will do our best to help.

    All the best,
    the Telerik team
  3. sk
    sk avatar
    5 posts
    Member since:
    Jun 2007

    Posted 06 Feb 2015 in reply to Svetlina Anati Link to this post

    Hello Team,
    I am trying to open an HTTPS page from another HTTPS page using Rad Window, but will not work. My scenario is like the following, please help.

    Parent page is https://parentpage.aspx
    Child page is https://childpage.aspx

    I am trying to open the child page from the parent page using below script.

    var oWindow = window.radopen(‘https://childpage.aspx’,'windowname');
  4. Marin Bratanov
    Marin Bratanov avatar
    3908 posts

    Posted 06 Feb 2015 Link to this post


    I have answered your thread on the same question: http://www.telerik.com/forums/open-https-page-from-another-https-page-using-rad-window. I would advise keeping threads concise and avoiding posting unrelated questions in older threads, so they can continue being helpful for other people with the concrete issue.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top