Safari中的AJAX问题

Can You help me with this AJAX issue on a MAC?

Both codes below do work properly on Chrome, FF and IE. But some MACs with Safari do have a problem with it.

1:

masterImg = $("#masterImg");
$("img").click(function() {
    src = $(this).attr('src');
    masterImg.fadeTo("fast", 0);
    setTimeout(function(){ masterImg.attr('src', src); },300);
    masterImg.fadeTo("fast", 1);
});

2:

$("#btn").click(function() {
    $.post("../ajax/test.php", { name: "something" })
    .done(function(data) {
        alert("Data Loaded: " + data);
    });
});