function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jingzhijingzhi 

security warning, IE cannot display the webpage

The page contains a file form, and the form will upload a file to a server using https.
Actually, the js code is quite simple.

But any time when you using ie (ie6/ie7) to do the form submit, a warning box pops up,
"...the page includes both secure and unsecure code",
if you neglect it and continue,
it will go to the 'ie cannot display the webpage' error page.

if you try do debug the page, the debugger will stop at
<body style="overflow:hidden;overflow-y:hidden">
        <div id="topPane" style="width: 100%; height: 100%">
            <iframe frameBorder="0" id="contentPane" name="contentPane" onload="if (this.contentWindow.location.pathname != '/blank.html') { if (true) { initContentPane('https://emc-dctm-v1.na5.visual.force.com/apex/ContentUpload?retURL=%2F0067000000B2yvv&amp;CF00N70000001yZyA_lkid=0067000000B2yvv&amp;CF00N70000001yZyA=Starbucks&amp;scontrolCaching=1&amp;core.apexpages.devmode.url=1') } }" src="/blank.html" style="width: 100%; height: 100%"></iframe>
        </div>


The problem is quite interesting,
it will disappear in ie if you first open another page and then return to this page again.
What changed between the operation?

The page works fine in firefox. And the error happens before the server side action invoked,
so it must be an error of client side.


possible reasons:
1. file upload using https
2. form enctype="multipart/form-data"
3. bad js code
4. ie problem


Who can give me some tips?

lots of thanks