Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello - I am unable to get Colorbox to work in IE 7.
It works in IE 6, IE 8, IE 9, and Safari, Chrome, Firefox, and Opera. I'm using Drupal 7 and latest versions of Colorbox module and plugin with the Fusion theme. I have tried a few different things to get it working, but no success thus far. Anyone else have this problem/know what could be wrong? I know IE 7 had some issues, but not sure why it works in IE 6, 8, and 9, but not 7! I have a slideshow using Colorbox on the main page and none of the photos display in IE 7 just the text.
Thanks!!
Comments
Comment #1
frjo CreditAttribution: frjo commentedDoes the demos at http://www.jacklmoore.com/colorbox work in IE 7? You can also test IE 7 on my own blog if you like http://xdeb.org/blog/frjo.
If the demos work then it's most likely a Colorbox module problem, if they don't it's a Colorbox plugin problem and nothing I can do anything about.
IE 7 is old, bad and not much used so I will not put a lot of work in to fixing things for it. Simple fixes I will of course commit.
Comment #2
eyewitness47 CreditAttribution: eyewitness47 commentedThank you for the response! The demos at http://www.jacklmoore.com/colorbox do work on IE 7.
I'm using Colorbox on another Drupal 7 site and that one also works in IE 7. Perhaps there is a conflict in the site that is not working with another module or something? It seems odd that only this site doesn't work - implies that I did something funky when setting things up. I'll keep investigating.
Comment #3
eyewitness47 CreditAttribution: eyewitness47 commentedOr maybe it's a problem in the theme? The site that does not work in IE7 is using a Fusion subtheme and the site that does work is using Zen...
Comment #4
frjo CreditAttribution: frjo commentedComment #5
lsolesen CreditAttribution: lsolesen commentedDo you get any errors in the console?
Comment #6
justindodge CreditAttribution: justindodge commentedI'm not sure what the original poster's issue was, but I can say we have experienced some issues with IE7 and the "A script on this page is causing Internet Explorer to run slowly" error. This would occur simply when loading a page, not actually interacting with anything colorbox.
This doesn't seem to be an error so much as it's just IE7 sucking at being a browser. When there is a lot of markup on the page, the colorbox behaviors that are firing in Drupal.behaviors bog it down.
For my particular use case, I didn't really need colorbox module to be working for IE7 on the site, we just allowed the links to open a new page instead of being in a modal. I set up an ie7 conditional comment that declares a global 'ie7' variable and added this to the top of one of my custom js files:
I took a peek at some of the JS files that colorbox has and saw some regular expressions and other heavy duty looking things. Doubtless there are ways to strip some of these components that I didn't need or optimize, etc etc - but the 'hit it with a hammer' approach was good enough for this scenario because I just didn't care about things looking pretty in IE7, I just didn't want the errors.
Just thought it might be helpful for anyone else wrestling with IE7.
Comment #7
jrbI had the same "A script on this page is causing Internet Explorer to run slowly" error in IE7. I created a separate issue with a solution (#1910162: "A script on this page is causing Internet Explorer to run slowly" error in IE7) for my problem because it wasn't clear that this was the same problem the OP was reporting.
Comment #7.0
jrbEdited
Comment #8
Neslee Canil Pinto