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
Post a Comment