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

frjo’s picture

Does 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.

eyewitness47’s picture

Thank 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.

eyewitness47’s picture

Or 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...

frjo’s picture

Category: bug » support
lsolesen’s picture

Status: Active » Postponed (maintainer needs more info)

Do you get any errors in the console?

justindodge’s picture

I'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:

if(ie7) {
  //colorbox behaviors that attach in Drupal.behaviors cause IE7 to do 'slow script' errors
  //Let's kill them all.
  Drupal.behaviors.initColorboxLoad           = null;
  Drupal.behaviors.initColorboxLogin          = null;
  Drupal.behaviors.initColorboxInline         = null;
  Drupal.behaviors.initColorboxImageModule    = null;
  Drupal.behaviors.initColorboxAdminSettings  = null;
  Drupal.behaviors.initColorbox               = null;
}

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.

jrb’s picture

I 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.

jrb’s picture

Issue summary: View changes

Edited

Neslee Canil Pinto’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)