1

IE9以外のすべての最新のブラウザーで機能する単純なajaxリクエストがあります(もちろん)。IE9では、応答は200として返され、成功関数が起動しますが、データは返されません。

これがjsです:

function getMapPins(section){
    $('.spinnerBG').fadeIn('fast');
    $.ajax({
        type: 'POST',
        url: '/ourprojects_ajax.html',
        data: {'map_section':section},
        cache:false,
        success: function(data){
            //alert(data);
            $('#mapPins').append(data);
            createPins(section);
        }
    });

}

そして、それがPHPではないことを確認するために:

<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>

何か案は?

4

1 に答える 1

6

PARSE ERROR があるようです:

<?php echo '<p>why won't this damn thing work in IE9</p>'; ?>

次のようにする必要があります。

<?php echo '<p>why won\'t this damn thing work in IE9</p>'; ?>

エラーをオフにすると、ページが空白になるため、応答が得られません。

于 2012-11-21T19:21:32.607 に答える