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

Rad window is not closing with https

3 Answers 111 Views
Window
This is a migrated thread and some comments may be shown as answers.
jalpesh.vadgama
Top achievements
Rank 2
jalpesh.vadgama asked on 30 Mar 2011, 09:44 PM
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();

        oWindow.Close();
    }

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,
Jalpesh

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 01 Apr 2011, 10:42 AM
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:

http://www.google.bg/search?hl=bg&source=hp&q=http+https+javascript+permission+denied+iframe&meta=&aq=f&oq=&rlz=1W1WZPA_en

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,
Svetlina
the Telerik team
0
sk
Top achievements
Rank 1
answered on 06 Feb 2015, 07:57 AM
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.

Scenario
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');
0
Marin Bratanov
Telerik team
answered on 06 Feb 2015, 04:44 PM

Hello,

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.

Regards,

Marin Bratanov
Telerik
 

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.

 
Tags
Window
Asked by
jalpesh.vadgama
Top achievements
Rank 2
Answers by
Svetlina Anati
Telerik team
sk
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or