1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    5
    Vote Rating
    0
    Andrulik is on a distinguished road

      0  

    Question DirectLoad action problem

    DirectLoad action problem


    Need your advice. When I'm using direct api action 'load' inside an extended form component, the form is loosing scope when loading, and I get the error message:
    Code:
    this.processResponse is not a function
    and therefor formdata won’t be uploaded. Here is the form
    Code:
    AD.app.Update = Ext.extend(Ext.form.FormPanel, {
        initComponent: function() {
            Ext.apply(this, {
                layout: 'anchor'
                ,autoWidth: true
                ,autoHeight: true
                ,monitorValid: true
                ,resetAfterSubmit: true
                ,paramsAsHash: true
                ,items: [{
                    xtype: 'fieldset'
                    ,items: [{
                        xtype: 'textfield'
                        ,fieldLabel: 'element'
                        ,name: 'id'
                    }]
                }]
                ,buttonAlign:'center'
                ,buttons: [{
                    text: 'Load'
                    ,scope: this
                    ,handler: function() {
                        this.getForm().load({
                            waitMsg: 'Requesting...'
                            ,scope: this
                            ,params:{id: 123465}
                            ,success: function() {
                                this.ownerCt.destroy();
                            }
                            ,failure: function(form, action) {
                                Ext.Msg.alert('Load Failed!', 'Please come back later.');
                            }
                        });
                    }
                },{
                    text: 'Cancel'
                    ,scope: this
                    ,handler: function(){
                        this.ownerCt.destroy();
                    }
                }]
            });
            AD.app.Update.superclass.initComponent.call(this);
            this.form.api = {
                load: assets.load
                ,submit: assets.update
            };
        }
    });
    Ext.reg('form-update', AD.app.Update);
    IMO, it seems like the form is loosing scope. Or may be it something else? - scoping in extjs sounds like voodoo to me for now.
    Sorry for my non-native-english, and dumb newby questions.

  2. #2
    Ext User
    Join Date
    Dec 2007
    Location
    Maida Vale
    Posts
    96
    Vote Rating
    0
    dearsina is on a distinguished road

      0  

    Default


    are you sure the form data isn't submitted? check with firebug. usually when i get errors like yours it's because i haven't formatted the *incoming* data source correctly.

  3. #3
    Ext User
    Join Date
    Dec 2007
    Location
    Maida Vale
    Posts
    96
    Vote Rating
    0
    dearsina is on a distinguished road

      0  

    Default


    also, see this thread, seems this guy had the same problem:

    http://www.extjs.com/forum/showthrea...ght=directload

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