aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Secure and nonsecure items warning. CSS Trouble? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Secure and nonsecure items warning. CSS Trouble?" Watch "Secure and nonsecure items warning. CSS Trouble?" New topic
Author

Secure and nonsecure items warning. CSS Trouble?

Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Hi,

My application uses secure connection. But on one page I am getting

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

pop-up. I have been looking for a solution. I searched this forum for a solution. But none of them resolved my problem.

I checked all my image links. They are correctly referenced through relative paths.

My page doesn't use IFrame. All my css uses relative path to refer images.

But when I disable color setting for css, The problem disappears.

This is what I did.

Tools > Internet Options > Accessibility > [Check] Ignore colors specified on the webpages.

So I could realize that the problem is with css.

But I can not find what actually causes the problem.

I looked the sources of the page by giving YES at one time and NO at another time. But There is no difference between their sources.

Please help to resolve this.

Thankyou
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Is your CSS file referencing https?

Eric
Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Thanks for the reply.

Yes.

All my CSS use relative path only.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

With MSIE, if you have an element with a blank or missing src or HREF attribute, this warning will be fired. I fix this with an initial value that points to a blank html page.
[ December 03, 2007: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Thanks Ben,

Sorry , Yesterday I took off. So I could not reply.

I checked all over the page.All the src attribute are in place and are perfect.

But I wonder why the warning disappears when I disable the color function in the css? Could you explain the possible cause please?

Thanks once again for taking interest on this issue.
Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Hi,

This is a continuation of my previous problem.

To add the headache, another page also giving me the same warning.

when I check both those pages im my workstation's IE, it generates warning in both the pages.
However, When I try the same in my neighbour's workstation, The warning is only on one page.
Both the workstation's IE has been set with default settings only and both IE are of same version.

Is that problem with any other criteria regarding browser?

Please help.
Thanks
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

At this point, I think it's time for you to post your code.
Without it, people can only make wild guesses as to what's going on.
Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Thanks Ben.

When I started this thread, I thought of putting the code. But My boss restricted me to do that and supported himself with the company policy. That is the only reason, I failed to furnish the code. I understand it is very difficult and even impossible to debug, with out seeing the code. But I am in the desparate position, Where I am not allowed to display the code. Sorry for this ben. Thanks for the effort.
Chris Host
Greenhorn

Joined: Aug 08, 2007
Posts: 6
Thanks Ben, Thanks Eric.

We finally found out the reason for the pop-up.
Actually part of the HTML page was created with the help of MSWord. MSWord itself inserted some smart tags in the document, which caused the havoc. When I commented the SmartTags and made some bypass, the pop-up disappeared.

But I still could not get to conclusion on how the smart tags are related with the CSS.

Thanks once again for guiding me in the right direction.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Originally posted by Chris Host:
But I still could not get to conclusion on how the smart tags are related with the CSS.
They aren't. and there's no reason to think that they are.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Clear your cache [Toos - Internet Options- Delet files] and hit the page again.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Secure and nonsecure items warning. CSS Trouble?
 
Similar Threads
secure nonsecure warning
Removing warning message for nonsecure items
Secure and nonsecure items warning - JSF1.2+AJAX+Woodstock+IE7
secure nonsecure warning in IE
Secure and Nonsecure Items