<i id='sYlcQ'><tr id='sYlcQ'><dt id='sYlcQ'><q id='sYlcQ'><span id='sYlcQ'><b id='sYlcQ'><form id='sYlcQ'><ins id='sYlcQ'></ins><ul id='sYlcQ'></ul><sub id='sYlcQ'></sub></form><legend id='sYlcQ'></legend><bdo id='sYlcQ'><pre id='sYlcQ'><center id='sYlcQ'></center></pre></bdo></b><th id='sYlcQ'></th></span></q></dt></tr></i><div id='sYlcQ'><tfoot id='sYlcQ'></tfoot><dl id='sYlcQ'><fieldset id='sYlcQ'></fieldset></dl></div>
          <bdo id='sYlcQ'></bdo><ul id='sYlcQ'></ul>
      1. <legend id='sYlcQ'><style id='sYlcQ'><dir id='sYlcQ'><q id='sYlcQ'></q></dir></style></legend>
      2. <small id='sYlcQ'></small><noframes id='sYlcQ'>

        <tfoot id='sYlcQ'></tfoot>

      3. jquery AJAX 停止使用 iOS 5.0.1

        时间:2023-05-31

              • <bdo id='b2vbV'></bdo><ul id='b2vbV'></ul>

                  <small id='b2vbV'></small><noframes id='b2vbV'>

                  <legend id='b2vbV'><style id='b2vbV'><dir id='b2vbV'><q id='b2vbV'></q></dir></style></legend>
                  <tfoot id='b2vbV'></tfoot>

                    <tbody id='b2vbV'></tbody>
                  <i id='b2vbV'><tr id='b2vbV'><dt id='b2vbV'><q id='b2vbV'><span id='b2vbV'><b id='b2vbV'><form id='b2vbV'><ins id='b2vbV'></ins><ul id='b2vbV'></ul><sub id='b2vbV'></sub></form><legend id='b2vbV'></legend><bdo id='b2vbV'><pre id='b2vbV'><center id='b2vbV'></center></pre></bdo></b><th id='b2vbV'></th></span></q></dt></tr></i><div id='b2vbV'><tfoot id='b2vbV'></tfoot><dl id='b2vbV'><fieldset id='b2vbV'></fieldset></dl></div>
                  本文介绍了jquery AJAX 停止使用 iOS 5.0.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  The following piece of logic used to work with both jquery 1.4.4 and 1.7.1 on all mobile devices that we're supporting:

                  $.ajax({
                    url: 'http://www.example.com/someurl',
                    type: 'GET',
                    dataType: 'text',
                    timeout: 60000,
                    success: function(data) {
                      alert(data);
                    },
                    error: function(jqXHR) {
                      alert(jqXHR.state());
                    }
                  });
                  

                  But with iOS 5.0.1, the above enters the error function alerting rejected without any actual HTTP requests. It seems that exactly one AJAX request will work before I need to restart my iPhone. Is this a known jquery / iOS 5.0 problem? How can I debug it? Is there any workaround? I don't know where to start looking.

                  NOTE: I've noticed on the server side, that instead of GET requests, OPTIONS requests are issued. This seems to be a related issue:

                  http://spin.atomicobject.com/2012/01/20/mobile-safari-on-ios-5-1-unexpectedly-making-cross-origin-resource-sharing-requests/

                  解决方案

                  The link that I provided in the question is actually pointing to the solution. Some of my ajax requests are used to fetch URL's of PDFs which are streamed using

                  Content-Disposition: attachment; filename="somename.pdf"
                  

                  Apparently, that causes major issues in iOS 5.0's Safari, breaking the XMLHttpRequest object (it is not related with jquery). Crazy. Here's the link again:

                  http://spin.atomicobject.com/2012/01/20/mobile-safari-on-ios-5-1-unexpectedly-making-cross-origin-resource-sharing-requests/

                  这篇关于jquery AJAX 停止使用 iOS 5.0.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:UIlabel 在滚动 UiTableView 时缩小 下一篇:在 xcode 4.5 GM IOS 6 中将方向设置为横向模式

                  相关文章

                  最新文章

                      <bdo id='hzJBr'></bdo><ul id='hzJBr'></ul>

                    1. <tfoot id='hzJBr'></tfoot>
                    2. <i id='hzJBr'><tr id='hzJBr'><dt id='hzJBr'><q id='hzJBr'><span id='hzJBr'><b id='hzJBr'><form id='hzJBr'><ins id='hzJBr'></ins><ul id='hzJBr'></ul><sub id='hzJBr'></sub></form><legend id='hzJBr'></legend><bdo id='hzJBr'><pre id='hzJBr'><center id='hzJBr'></center></pre></bdo></b><th id='hzJBr'></th></span></q></dt></tr></i><div id='hzJBr'><tfoot id='hzJBr'></tfoot><dl id='hzJBr'><fieldset id='hzJBr'></fieldset></dl></div>
                    3. <small id='hzJBr'></small><noframes id='hzJBr'>

                    4. <legend id='hzJBr'><style id='hzJBr'><dir id='hzJBr'><q id='hzJBr'></q></dir></style></legend>