[jQuery] AJAX/JSON/PHP function works in Safari/FF but not in IE

[jQuery] AJAX/JSON/PHP function works in Safari/FF but not in IE


This code works flawless in Safari and FF but not in any IE. Kan anyone see
the problem?
$(document).ready(function() {
    $("#jquery_spinner_2").hide(function() {
        first = true;
        teaser(function() {
            $("#jquery_spinner_2").hide(function() {
                $("#jquery_spinner_1").fadeIn('slow')
            });
        });
        
        teaser();
    });
    
function teaser() {
var spinnerContainer_1 = $('#jquery_spinner_1');
var spinnerContainer_2 = $('#jquery_spinner_2');
    $.ajax({
     url: '/_library/ajax.php',
     data: 'ajax-action=getStartImages',
     dataType: 'json',
     type: 'post',
     success: function (j) {
         if(!first) {
             spinnerContainer_2.html(j);
             first = true;
         } else {
             spinnerContainer_1.html(j);
             first = false;
         }
     }
    });
}
$.timer(5000,(function (timer) {
    if(first) {
    
        $("#jquery_spinner_1").fadeOut('slow',function() {
            $("#jquery_spinner_2").fadeIn('slow');
            $("#jquery_spinner_1").hide();
            teaser();
        });
    } else {
        $("#jquery_spinner_2").fadeOut('slow',function() {
            $("#jquery_spinner_1").fadeIn('slow');
            $("#jquery_spinner_2").hide();
            teaser();
        });
    }
}));
});
--
View this message in context: http://www.nabble.com/AJAX-JSON-PHP-function-works-in-Safair-FF-but-not-in-IE-tp19987335s27240p19987335.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.