javascript - jquery ajax not working asynchronously in EXTNET -


i have problem ajax methods not work asynchronously. can me out? method a() returns single record, while method b() returns 500 records.

<script>  function a() {              var param = "some value";              $.ajax              ({                  url: "webform1.aspx/getdetail",                  data: "{eunidad:'" + param + "'}",                  type: "post",                  async: true,                  contenttype: "application/json; charset=utf-8",                  datatype: "json",                  success: function (respuesta) {                      alert('teminado');                  },                  error: function (xhr, status) {                      alert('disculpe, existió un problema');                  }              });          }    function b() {              var param = "somevalue";              $.ajax              ({                  url: "webform1.aspx/getalldetails",                  data: "{jsons:'" + param + "'}",                  type: "post",                  async: true,                  contenttype: "application/json; charset=utf-8",                  datatype: "json",                  success: function (respuesta) {                      alert('teminado');                  },                  error: function (xhr, status) {                      alert('disculpe, existió un problema');                  }              });  </script>


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -