开发者

jQuery(Ajax) problem in Internet explorer

The Code-

$.ajax({
    url: "edit.php",
    success: function(html)
    {
     $("#last").html(html).hide().slideDown('slow');
         alert("hello");
    }
});

Mozilla shows it all fine. Where as IE (being the normal PMS *) doesn't load anything into #last but does show the alert, what could be the problem?

I tho开发者_JAVA技巧ught javascript was browser independent?


You are missing quotes around the url:

$.ajax({
    url: 'edit.php',
    success: function(html) {
        $('#last').html(html).hide().slideDown('slow');
        alert('hello');
    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜