aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes HTTPS - page contains both secure and nonsecure - DOJO 0.4 and IE 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "HTTPS - page contains both secure and nonsecure - DOJO 0.4 and IE 6" Watch "HTTPS - page contains both secure and nonsecure - DOJO 0.4 and IE 6" New topic
Author

HTTPS - page contains both secure and nonsecure - DOJO 0.4 and IE 6

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
I am using DOJO 0.4 and IE 6.0 to display a Tree using DOJO Widget in JSP using HTTPS. All the prior JSP (pages used to navigate to the JSP containing DOJO) also use HTTPS.

In the JSP containing DOJO, I get the following error message:

This page contains both secure and nonsecure items. Do you want to display the nonsecure items?

Yes, No, More Info buttons are displayed.

I am not using Iframe.

Is there a way to get around this message?

Is the newer version of DOJO have a resolution?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Are all the links on the page https?

Eric
Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
Yes, all the links are https.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Including the links to the js files and such?

When you do a view source on the page do you see any http?

Eric
Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
There are no pages with http in the source of JSP (when viewed the source of the HTML). For that matter, there are no pages with http nor https.

I also changed the Javascript from language="javascript"

TO

type="text/javascript"

to make it consistent with DOJO.

I read somewhere saying that type mismatch may cause it.

However, I cannot make this change across the board as some other includes use the style language="javascript"

Will changing all the includes to the same style of type="text/javascript" instead of language="javascript" make any difference?

Other JS are included in the page as:

<script language="javascript" src="/scripts/doDate.js"></script>

DOJO script is included as:

<script type="text/javascript"></script>

So, script is included in two different ways.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

You mentioned that you were not using iframes, but do you have any other external references with blank URLs (images, stylesheets, etc) that you fill in later via script? These blanks refs can sometimes be the culprit.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bill Lawton
Greenhorn

Joined: Nov 28, 2007
Posts: 1
I also have this problem and I am indeed creating an external reference via scripting. Is there anything that can be done if that is my requirement?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Don't leave any reference initially unset. Set them to the URL of a small HTML page that displays nothing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTPS - page contains both secure and nonsecure - DOJO 0.4 and IE 6