Our website uses brilliant features that are driven by jQuery 1.7 (using jQuery Update). However, basic functionalities (like uploading a simple image) seem to fail in IE9 now, by showing a wsod.

When downgrading to jQuery 1.5, uploading images in IE9 works again, but all the other features are now disfunctional because of this.

As you may understand this doesn't make our love for Microsoft any thicker (to put it gently).

Are there any ideas to cope with IE (once again) when it comes to jQuery versions?

Edit: we've found out that this must be related to our (custom) theme.

Comments

knalstaaf’s picture

This conditional for IE9 in template.php doesn't seem like a good solution either (tried it with no success):

<?php

function MYTHEME_preprocess_page(&$vars) {

    $ie9 = preg_match('/(?i)msie [1-9]/',$_SERVER['HTTP_USER_AGENT']);

    if ($ie9 == 1) {
        $scripts = drupal_add_js('https://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js');
        unset($scripts['core']['http://domain.com/sites/all/modules/jquery_update/replace/jquery/1.7/jquery.min.js?v=1.7.1']);
        $variables['scripts'] = drupal_get_js('header', $scripts);
    }

}

?>

(It leaves the 1.7-script untouched, so both jQueries (1.5 & 1.7) are loaded in IE9.)

knalstaaf’s picture

The issue was solved (if you can call it that) by removing the shadowbox folder from the sites/all/libraries folder.