Prevent IE6/7 from throwing security warning (substitute your own absolute URL to blank.gif on your server)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d8c8d1bc3de5915cc3a7ad822170485750b8aaa4 Mon Sep 17 00:00:00 2001 | |
From: John Kary | |
Date: Thu, 1 Sep 2011 11:17:20 -0500 | |
Subject: [PATCH] [BREAK] Modify FancyBox 1.3.4 to not throw SSL warning in | |
IE6/7 | |
See this thread: | |
http://wolfewebservices.com/blog/fancybox-ssl-security-warning-ie6-and-ie7 | |
Basically, FancyBox creates a blank iFrame in IE6 to display the fancybox content. | |
But it creates this blank iFrame with some bogus data, which ends up not being | |
loaded over HTTPS. So instead I modified the core library to load a blank GIF | |
over HTTPS. | |
--- | |
.../fancybox/jquery.fancybox-1.3.4.js | 4 ++-- | |
1 files changed, 2 insertions(+), 2 deletions(-) | |
diff --git a/public_html/js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js b/public_html/js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js | |
index 5f77db2..40a3377 100644 | |
--- a/public_html/js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js | |
+++ b/public_html/js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js | |
@@ -1090,7 +1090,7 @@ | |
loading.addClass('fancybox-ie6'); | |
wrap.addClass('fancybox-ie6'); | |
- $('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank' ) + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer); | |
+ $('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || '') ? 'https://yourdomain.com/js/jquery.fancybox-1.3.4/fancybox/blank.gif' : 'about:blank' ) + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(outer); | |
} | |
}; | |
-- | |
1.7.6.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment