1. #1
    Ext User cgountanis's Avatar
    Join Date
    Sep 2009
    Location
    WI
    Posts
    41
    Vote Rating
    0
    cgountanis is on a distinguished road

      0  

    Default ExtJS Direct Mutiple Calls to Same Function?

    ExtJS Direct Mutiple Calls to Same Function?


    Using the code below I should get 2 AJAX calls with 2 returns. It seems the last one in line is the one that runs. Is there a way to run the same function with params inline at same time. I am sure you can see the reasons. Depending on the siteType it returns different string. Can someone help me with this please?

    Code:
        var siteType = "";
    
        //testing calling function with return
        siteType = '1';
        Sample.GetLayers(siteType, function(e, o)
        {
            console.log(o.result);
        });
    
        siteType = '2';
        Sample.GetLayers(siteType, function(e, o)
        {
            console.log(o.result);
        });

  2. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    Mainz
    Posts
    241
    Vote Rating
    1
    crp_spaeth is on a distinguished road

      0  

    Default


    Both method calls should get executed. But you may end up with one Ajax request which transports both requests.

    If thats not what you want it to do (which you should) you can set "enableBuffer" of the remoting provider to false.

  3. #3
    Ext User cgountanis's Avatar
    Join Date
    Sep 2009
    Location
    WI
    Posts
    41
    Vote Rating
    0
    cgountanis is on a distinguished road

      0  

    Default


    Both do not run firebug only shows one call but it seems to be the last one in line that gets executed. Is this a bug?

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar