Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 320
  • Last Modified:

SSL fails in iframes

i have a site secured with SSL. EVerything works fine and i also see the lock icon on the bottom status bar. i am using ie6. now in my secure asp page i inserted a blank iframe. after i did this i get a alert box that says "this page contains both secure and non-secure items. do you want to display both?" when i click 'yes', the page displays and i am able to continue. the site still works properly, but the lock icon on the bottom disappers.

what is happening and how do i cure this. my customer will not accept a page without the lock icon on the bottom even though the site is secure and working properly.

is this a specific issue with iframes ?
0
RTKVSNL
Asked:
RTKVSNL
  • 2
1 Solution
 
RTKVSNLAuthor Commented:
i have posted the code that caused this problem to begin

<IFRAME SRC="" id="fraHeader"  Name="fraHeader" scrolling="no" marginwidth="0" marginheight="0" AllowTransparency="false" frameborder="no"  noresize style="Z-INDEX: 3; LEFT: 0px; WIDTH: 780px; POSITION: absolute; TOP: 0px; HEIGHT: 68px;border-style:none;border-color:red"></IFRAME>
0
 
RTKVSNLAuthor Commented:
i have noted one more thing. in the SRC tag above, if i enter some page address then i dont get the security alert, butin my application, i am setting the SRC later through javascript. that is why i have left the SRC blank. could this be a problem?

i also deleted the javascript code, so i was just left with a blank iframe. even this caused the security alert to pop up.

i guess i am in quite a soup !
0
 
seanpowellCommented:
Hi RTKVSNL,

The problem is caused by your iframe not have a SRC - as you've noted - when the page loads. You need to set the source to reference some dummy page or relative URL in your site, and then replace the URL with your script after load - or however you've set that up.

Thanks,
GM
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now