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

Error: this page contains both secure and nonsecure items

2 Answers 33 Views
Window
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 22 Sep 2011, 05:09 PM

I have a https site, use radwindow to open another window on the same https site.

On the main window I have the below code.

    function Sel_OnClientClose(sender, eventArgs) {
    top.location.href = top.location.href;         
        }
  
  
<telerik:RadWindowManager ID="radWindowManager" runat="server" IconUrl="/img/radwindowicon.gif" Style="z-index: 7001">
        <Windows>
            <telerik:RadWindow ID="wndSelectAccount" runat="server" Modal="true" KeepInScreenBounds="true" height="450px" Width="700px"   Animation="Fade"
                AutoSizeBehaviors="Default" ShowContentDuringLoad="true" VisibleStatusbar="false"
                NavigateUrl="/SelectAccount.aspx" OnClientClose="Sel_OnClientClose" />
               </Windows>
    </telerik:RadWindowManager>
Everytime when I close the top rad window, we IE warning message  "contains both secure and nonsecure items... Do you want to display nonsecure item?"
On the top window, I use alert(location.href) when window load, can see it is https also. Not sure why we got the warning message when both main and top window are https?

Please help!!

Thanks!!

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 23 Sep 2011, 03:43 PM
Hello J J,

This probably stems from the request for the IconUrl, as it is a relative path. The reason for that is not a bug in the RadWindow control, but this is the framework itself - you will get the same output if you set a relative path to any other standard control. Indeed the problem is that the browser does not recognize that the image is coming from a secure location as well, hence the warning.

Fortunately, there is an easy fix - to set the iconUrl property with the full Url, e.g.: IconUrl="https://mysite/img/radwindowicon.gif"


Best wishes,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
JJ
Top achievements
Rank 1
answered on 23 Sep 2011, 04:07 PM
Thanks. 
Tags
Window
Asked by
JJ
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
JJ
Top achievements
Rank 1
Share this question
or