Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are all the links on the page https?

Eric
 
Sam Gehouse
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, all the links are https.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bill Lawton
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't leave any reference initially unset. Set them to the URL of a small HTML page that displays nothing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic