troubleshooting Question

Security Warning popup when using IFrame on secure page (HTTPS).

Avatar of IsaacWeathers
IsaacWeathersFlag for United States of America asked on
JavaScript
2 Comments1 Solution1022 ViewsLast Modified:
Someone recently offered this solution to a javascript problem that I was having, however it turns out the solution throws a Security Warning box when using HTTPS to view the page. See below for the Solution and my question afterward.

Solution:
"Make one form be the controller of the page and the other form submit to a target iframe on the page.
Like this:

<form ACTION="<%=MM_editAction%>" METHOD="POST" name="RegistrationInsert" id="RegistrationInsert" target="myFrame">
    <input type="submit" name="Submit" value="Submit Registration" onClick="submitForms();DisableButton()">  
</form>
<iframe name="myFrame" width="0" height="0"></iframe>
<form ACTION="Conf_Order_Processing.asp" METHOD="POST" name="RegistrationInsert2" id="RegistrationInsert2" target="_self">
</form>"


My question is, this form is being used on a secure page (HTTPS) and when I added the IFrame to the page it now pops up a Security Warning box stating that "This page contains both secure and nonsecure items. Do you wish to display the nonsecure items?" Is there anyway to get around that with the IFrame? Because the end user isn't going to know what's going on and it will cause confusion for them.

Thanks for any help that can be given!

Isaac
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros