title: Ajax - Firefox not working
body: <p>ajax chrome also works. But <strong>firefox</strong> is not working. I did not understand the reason. Sometimes I have this problem. Firefox also needs to be written differently. Help please.</p>
  
  <pre><code>$(function () {
              //[id$ = txtAra]
              $("[id$=txtAra]").autocomplete({
                  source: function (request, response) {
                      $.ajax({
  
                          url: "/AramaScript.aspx/Search",
                          data: "{ 'prefix': '" + request.term + "'}",
                          dataType: "json",
                          type: "POST",
                          contentType: "application/json; charset=utf-8",
                          success: function (data) {
                              response($.map(data.d, function (item) {
                                  return {
                                      label: item,
                                      val: item
                                  }
                              }))
                          },
                          error: function (response) {
                              alert(response.responseText);
                          },
                          failure: function (response) {
                              alert(response.responseText);
                          }
                      });
                  },
                  select: function (e, i) {
                      $("#btnAra").click();
                  },
                  minLength: 1
              });
          });
  </code></pre>