IFRAME RPC causes IE to complain that page contains secure and insecure items

Hi Experts

I use an IFRAME to make a Remote Procedure Call to the server. Both the main page, and page called by the IFRAME are https:// secure, however, IE raises the error that the page contains both secure and insecure items. Any one know why and how to avoid it?

Here is the code that creates the IFRAME:

 var tempIFrame=document.createElement('iframe');
      tempIFrame.setAttribute('id','RSIFrame');
      tempIFrame.style.border='0px';
      tempIFrame.style.width='0px';
      tempIFrame.style.height='0px';
      IFrameObj = document.body.appendChild(tempIFrame);
metalaureateAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GwynforWebCommented:
is that not a browser security setting?
0
virmaiorCommented:
It is a browser security setting... and it is correct..
since you can change src of a IFRAME using JavaScript, having an IFRAME at all is an unsecure item.
0
metalaureateAuthor Commented:
Could you explain how an IFRAME with SSL is insecure, as compared to a normal page with SSL?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GwynforWebCommented:
it is not the iframe it is the content.
0
kennethxuCommented:
when you add the iframe to body, the source of iframe is not set yet. somehow, IE consider a blank source of iframe is unsecure. the work around is to provide a blank page in you site and assign it to iframe before adding to body.

      tempIFrame.src='/path/to/blankpage';
      IFrameObj = document.body.appendChild(tempIFrame);

HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
metalaureateAuthor Commented:
Thanks, that fixed it.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.