weixin_33694172 2012-10-04 22:25 采纳率: 0%
浏览 141

IE浏览器未加载ajax请求

I have a script the loads data via ajax, splits it, reverses it and displays it on the page. As usual all it's working great on all browsers except the dreaded IE. It throws up no errors in IE, just does not load. I am using Twitter Bootstrap, jQuery v1.7.1. Please help if you can. Cheers

$.ajax({
      url: "insert_URL_here",
      success: function(data){

        var number_box = $('.number_box');
        var number_list = data.split("");

        number_list.reverse();

        for(var i=0; i < number_box.length; i++)
        {

          if(number_list.length > i)
          {
              $(".unit_"+i).html(number_list[i]);
          }
          else
          {
              $(".unit_"+i).html("0");
          }
        }
      }
    });
  • 写回答

1条回答 默认 最新

  • weixin_33670786 2012-10-04 22:27
    关注

    Try setting the dataType property to json ..

    If you are expecting your request data to be in json format..

    dataType : 'json'  and also the data 
    
    $.ajax({
          url: 'insert_URL_here',
          data : '{}',
          dataType : 'text',  // OR  dataType : 'html',
          success :
    
    评论

报告相同问题?

悬赏问题

  • ¥15 maixpy训练模型,模型训练好了以后,开发板通电会报错,不知道是什么问题
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容