Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #11
    Sencha User
    Join Date
    Apr 2012
    Posts
    13
    Vote Rating
    0
    vipsshan is on a distinguished road

      0  

    Default How to append Url

    How to append Url


    Hi gcw07,

    Thanks for your response.
    Actually from the view I am calling the store.load function and in the store I am calling the web service and then based on the result I want to do some processing, It seems that when I am calling the store.load one thread goes there and another thread moves forward and at that point of time store is still having the old values so I can't perform the desired action. This will be more clear from the below piece of code

    onSubmitButton: function(btn, evt){

    //Getting the value from control to variable
    var txt = Ext.ComponentQuery.query('#txt')[0].getValue();
    var pwd = Ext.ComponentQuery.query('#pwd')[0].getValue();


    //Creating the object of store
    var loginStore = Ext.getStore('Login');


    //passing the value for parameter
    loginStore.getProxy().setExtraParam('Un', txt);
    loginStore.getProxy().setExtraParam('Pd', pwd);
    //Loading the store
    loginStore.load();

    //Trying to to get the value which has been returned from web service to store

    var nm=Ext.getStore('Login').getAt(0).get('ret');

    //Based the value trying to call another page or show error message
    if(nm==1)
    {
    this.activateNotesList();
    }
    else{
    Ext.Msg.alert("Enter the correct User Name and password");
    }
    },

    Here Immediately after load I am not getting the updated value, I need that programm should wait till it got the updated value I tried using IsLoading and IsLoaded function but unable to achieve the desired flow. Please help.....

    Regards.

  2. #12
    Sencha User
    Join Date
    Mar 2012
    Posts
    28
    Vote Rating
    0
    gcw07 is on a distinguished road

      0  

    Default


    Not really sure what your asking. Like I previously said, I think your over complicating it. I think all you need is to use the submit and just submit the form to the server and get the response back.

    Also remember that loading is asynchronous. So it will send of the request to load, but your script will continue on. So if you don't wait until it is fully loaded, it will not have the values from that loaded store.

  3. #13
    Sencha User
    Join Date
    Apr 2012
    Posts
    13
    Vote Rating
    0
    vipsshan is on a distinguished road

      0  

    Default How to append Url

    How to append Url


    The wait is my problem, How to wait till I get the result that I don't know can you please help me out on that.

Thread Participants: 2