tags:

views:

159

answers:

2

Hi

web page : http://sideradesign.com/eco-art/gallery/

This code works fine in all brwosers except IE8 (haven't tested IE6/7)

jQuery(function () {
  jQuery("#main-content").append("<img src='../images/ajax-loader.gif' id='ajax-loader' />");
  $ajaxSpinner = jQuery("#ajax-loader");
  var thisTarget = jQuery('#thumbnail-nav ul li:eq(0) a.thumb').attr('href');
  jQuery('#main-content').load(thisTarget + " .entry-content");
  jQuery('a.thumb').click(function () {
    $ajaxSpinner.fadeIn();
    jQuery('#main-content').animate({
        opacity: "0.1"
    });
    thisTarget = jQuery(this).attr('href');
    jQuery('#main-content').load(thisTarget + " .entry-content", function () {
        $ajaxSpinner.fadeOut();
        jQuery('#main-content').animate({
            opacity: "1"
        });
    });
    return false;
});

});

A: 

IE doesn't support the opacity property in CSS, so animating it from jquery isn't going to work. Instead you could use fadeTo, which works around this problem.

Marius
thanks for that, that's not the main issue, but good to know
paul
I don't think that has anything to do with it, for a couple of reasons. The "load" doesn't seem to be happening at all.
Pointy
I just ran the debugger in IE8, and the callback function is being called.
Marius
+1  A: 

It's the CSS that's causing the problem. I disabled the stylesheet and I can see the content appearing. this is resolved

paul