Hello i ma trying some with ExtJS framework.
I want to ask if this solution is right or not.
And iam sorry for lame question.
Code:
function test(id)
{
var divO = Ext.get('divName');
           
            divO.load(
            {
                url:'./test.php',
                method:'POST',
                params:{
                    action:'test',
                    ID:id,
                },
                update:test2(ID),
                text:'Testing'
            });
}
Code:
function test2(id){
     if(Ext.get('divName2')!=null)
        {

            var divO = Ext.get('divName2');

            divO.load(
            {
                url:'./test.php',
                method:'POST',
                params:{
                    action:'test2',
                    id:id
                },
                text:'Test'
            });
        }
}
what i want when i click on button run function and update some div element. After this element is updated run another function that fill another div element.
For now all working with param update:function(), But in the second div that i want update is the some code + new code that i fill via update function.
is this solution right with update param ?
i am sorry about language.
thx for help