jquery ajax not working asynchronously

  1. #1

    [Closed] jquery ajax not working asynchronously

    I have a problem my ajax methods do not work asynchronously. Can someone help me out ?.
    The method a () returns a single record, while the method b () returns 500 records.

    I want the function a () is executed if the function b () is not finished running, I want to work asynchronously with ExtNet.

    I need some way to make asynchronous requests to the server.

    <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>
    Last edited by krizalid0; May 04, 2015 at 2:19 PM.
  2. #2
    Hello,

    Is this related to Ext.NET functionality?
    Geoffrey McGill
    Founder
  3. #3

    Hello!

    Actually try to use jquery ajax function because I could not make asynchronous requests to the server with EXTNET.

    I need some way to make asynchronous requests to the server.
    Last edited by krizalid0; Apr 28, 2015 at 9:37 PM.
  4. #4
    Hello,

    Maybe the following post can help:

    http://forums.ext.net/showthread.php...ll=1#post72625
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] MVC with URL parameter not working with Ext.net ajax
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 01, 2012, 11:50 AM
  2. [CLOSED] Trying to load the SECOND chart Asynchronously...
    By Fahd in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 11, 2012, 5:16 PM
  3. Replies: 3
    Last Post: Feb 21, 2012, 7:46 AM
  4. Ajax Event not working
    By vickygajula in forum 1.x Help
    Replies: 3
    Last Post: Dec 09, 2010, 5:19 PM
  5. File download not working in ajax method...
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 08, 2009, 5:28 AM

Tags for this Thread

Posting Permissions