久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <i id='pyqIP'><tr id='pyqIP'><dt id='pyqIP'><q id='pyqIP'><span id='pyqIP'><b id='pyqIP'><form id='pyqIP'><ins id='pyqIP'></ins><ul id='pyqIP'></ul><sub id='pyqIP'></sub></form><legend id='pyqIP'></legend><bdo id='pyqIP'><pre id='pyqIP'><center id='pyqIP'></center></pre></bdo></b><th id='pyqIP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pyqIP'><tfoot id='pyqIP'></tfoot><dl id='pyqIP'><fieldset id='pyqIP'></fieldset></dl></div>
    • <bdo id='pyqIP'></bdo><ul id='pyqIP'></ul>

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

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

      1. 為什么這個 jQuery AJAX PUT 可以在 Chrome 中工作,但

        Why does this jQuery AJAX PUT work in Chrome but not FF(為什么這個 jQuery AJAX PUT 可以在 Chrome 中工作,但不能在 FF 中工作)
          <bdo id='AnTL8'></bdo><ul id='AnTL8'></ul>
              <tbody id='AnTL8'></tbody>

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

                <i id='AnTL8'><tr id='AnTL8'><dt id='AnTL8'><q id='AnTL8'><span id='AnTL8'><b id='AnTL8'><form id='AnTL8'><ins id='AnTL8'></ins><ul id='AnTL8'></ul><sub id='AnTL8'></sub></form><legend id='AnTL8'></legend><bdo id='AnTL8'><pre id='AnTL8'><center id='AnTL8'></center></pre></bdo></b><th id='AnTL8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='AnTL8'><tfoot id='AnTL8'></tfoot><dl id='AnTL8'><fieldset id='AnTL8'></fieldset></dl></div>
                1. <legend id='AnTL8'><style id='AnTL8'><dir id='AnTL8'><q id='AnTL8'></q></dir></style></legend>
                  <tfoot id='AnTL8'></tfoot>
                  本文介紹了為什么這個 jQuery AJAX PUT 可以在 Chrome 中工作,但不能在 FF 中工作的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在 Chrome 中,這就像它應該做的那樣執行 HTTP PUT,但在 FireFox 21 中卻沒有.javascript 控制臺或后端沒有錯誤.

                  In Chrome this does an HTTP PUT just like it should, but in FireFox 21 it doesn't. There are no errors in the javascript console or in the backend.

                  這是 HTML:

                  <div id="createTeamModal" class="small reveal-modal">
                          <form id="createTeamForm">
                              <div class="row"><p id="teamFlavorText" class="lead">Building a new team</p></div>
                              <div class="row">
                                  <div class="small-4 large-4 columns"><label>Team Name:</label></div>
                                  <div class="small-6 large-6 columns"><input name="teamName" id="teamName" type="text" size="20"/></div>
                              </div>
                              <div class="row"><p class="lead">Does this team work for a business?</p></div>
                              <div class="row">
                                  <div class="small-4 large-4 columns"><label>Business Size:</label></div>
                                  <div class="small-6 large-6 columns">
                                      <select id="businessSizeSelect" name="businessSizeSelect">
                                      <option value="1">Nope, I work alone</option><option value="2">2 to 49</option><option value="3">50 to 99</option><option value="4">100 to 999</option><option value="5">1,000+</option>
                                      </select>
                                  </div>
                              </div>
                              <div id="businessLocationDiv" class="row" style="display: none; margin-top: 20px;">
                                  <div class="small-4 large-4 columns"><label>Business Location:</label></div>
                                  <div class="small-6 large-6 columns">
                                      <select id="businessLocationSelect" name="businessLocationSelect">
                                      </select>
                                  </div>
                              </div>
                              <div id="businessTypeDiv" class="row" style="display: none; margin-top: 20px;">
                                  <div class="small-4 large-4 columns"><label>Industry:</label></div>
                                  <div class="small-6 large-6 columns">
                                      <select id="businessTypeSelect" name="businessTypeSelect">                      
                                      </select>
                                  </div>
                              </div>
                              <div class="row" style="margin-top: 20px;">
                                  <div class="large-offset-10 small-1 large-1 columns">
                                      <button id="createTeamButton" class="small button">Create</button>
                                  </div>
                              </div>
                          </form>
                          <a class="close-reveal-modal">&#215;</a>
                      </div>
                  

                  這里是 jQuery:

                  And here is the jQuery:

                  $("#createTeamButton").click(function () {
                      var teamObject = new Team();
                      teamObject.description = $("#teamName").val();
                      teamObject.businessSize = $("#businessSizeSelect").val();
                      teamObject.businessType = $("#businessTypeSelect").val();
                      teamObject.businessLocation = $("#businessLocationSelect").val();
                  
                      $.ajax({
                          type: "PUT",
                          url: "/ajax/rest/team",
                          dataType: "json",
                          data: JSON.stringify(teamObject),
                          success: function () {
                              // Reload the team select box
                              loadTeamSelectBox();
                  
                              // Pop up the site create modal
                              $('#createSiteModal').foundation('reveal', 'open');
                          },
                          error: ajaxErrorHandler
                      });
                  });
                  

                  我在 Fiddler 中觀察到了它們,工作 (Chrome) 和不工作 (Firefox) 之間的區別在于 HTTP PUT 在 Chrome 中觸發而在 Firefox 中不觸發.

                  I have observed them in Fiddler, and the difference between working (Chrome) and not working (Firefox) is that the HTTP PUT fires in Chrome and does not fire in Firefox.

                  現在,我知道并非所有瀏覽器都保證 jQuery.ajax PUT.

                  Now, I know that jQuery.ajax PUT is not guaranteed in all browsers.

                  我讀過

                  • 是 PUT、DELETE, HEAD 等方法在大多數網絡瀏覽器中都可用?
                  • http://annevankesteren.nl/2007/10/http-method-support

                  這些網站重申 PUT 可能無法在所有瀏覽器中運行,但應該在 FF 中運行.

                  These sites reaffirm that PUT may not work in all browsers, but should work in FF.

                  最后,我用 FF21 和 PUT 實現了以下目標

                  Finally, I hit the following with FF21 and PUT works

                  • http://www.mnot.net/javascript/xmlhttprequest/

                  我當然可以解決這個問題,但在我看來這應該可行.我寧愿不 jerry-rig 一些東西,而是讓 jQuery 的 .ajax 正常工作.

                  I could certainly engineer around this, but it seems to me this should work. I would rather not jerry-rig something, but rather get jQuery's .ajax to work properly.

                  其他細節:* jQuery 版本 2.0.0* 后端是 Spring3

                  Other Details: * jQuery version 2.0.0 * Backend is Spring3

                  推薦答案

                  這是一個令人失望的答案.按鈕單擊正在提交表單,即使它不一定要這樣做.我把 onsubmit="return false;"在表格中,問題得到了解決.

                  Here's a disappointing answer. The button click was submitting the form, even though it was not bound to do that. I put onsubmit="return false;" in the form and the problem was resolved.

                  這篇關于為什么這個 jQuery AJAX PUT 可以在 Chrome 中工作,但不能在 FF 中工作的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  XmlHttpRequest onprogress interval(XmlHttpRequest onprogress 間隔)

                    <tbody id='CJ8lV'></tbody>
                2. <legend id='CJ8lV'><style id='CJ8lV'><dir id='CJ8lV'><q id='CJ8lV'></q></dir></style></legend>
                  <i id='CJ8lV'><tr id='CJ8lV'><dt id='CJ8lV'><q id='CJ8lV'><span id='CJ8lV'><b id='CJ8lV'><form id='CJ8lV'><ins id='CJ8lV'></ins><ul id='CJ8lV'></ul><sub id='CJ8lV'></sub></form><legend id='CJ8lV'></legend><bdo id='CJ8lV'><pre id='CJ8lV'><center id='CJ8lV'></center></pre></bdo></b><th id='CJ8lV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CJ8lV'><tfoot id='CJ8lV'></tfoot><dl id='CJ8lV'><fieldset id='CJ8lV'></fieldset></dl></div>

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

                        1. <tfoot id='CJ8lV'></tfoot>
                            <bdo id='CJ8lV'></bdo><ul id='CJ8lV'></ul>
                            主站蜘蛛池模板: 国产东北一级毛片 | 国产精品久久免费观看 | 黄网站涩免费蜜桃网站 | av中文字幕在线播放 | 九一国产精品 | 在线免费观看欧美 | 久久网亚洲 | 精品欧美一区二区在线观看欧美熟 | 久久不卡 | 黄a网站 | 中国三级黄色录像 | 欧美综合一区二区三区 | 亚洲午夜视频在线观看 | 日本三级在线网站 | 精品免费国产一区二区三区四区介绍 | 九九热在线视频 | 一区二区三区四区在线视频 | 夜夜撸av| 欧美性网站| 久久成人久久 | 国产美女视频一区 | 五月婷婷激情 | 日本免费黄色 | 国产精品免费一区二区 | 成人三区 | 亚洲 欧美 日韩 在线 | 精品久久99 | 丝袜一区二区三区 | 欧美videosex性极品hd | 久久久久国产 | 在线视频中文字幕 | 国产精品久久久久久网站 | 一级片在线观看 | 国产乱人伦精品一区二区 | 99精品国产一区二区青青牛奶 | 北条麻妃av一区二区三区 | 91精品久久久久久久久 | 香蕉视频在线播放 | 我要看黄色录像一级片 | 亚洲精品一区国产精品 | 中文字幕精品视频在线观看 |