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. #1
    Ext User atze's Avatar
    Join Date
    Oct 2008
    Posts
    5
    Vote Rating
    0
    atze is on a distinguished road

      0  

    Default [SOLVED] form load(), this.processResponse is not a function

    [SOLVED] form load(), this.processResponse is not a function


    I have problem with form load() function. When I don't POST parameter and don't set @extdirect-len 3 when form is populate otherwise i get error.What is wrong?

    js:
    PHP Code:
    Ext.onReady(function(){

        
    Ext.app.EXTDIRECT_API.enableBuffer 100;
        
    Ext.Direct.addProvider(Ext.app.EXTDIRECT_API);
        
        
    // provide feedback for any errors
        
    Ext.QuickTips.init();
        
        var 
    basicInfo = new Ext.form.FormPanel({
        
            
    title'Basic Information',
            
    borderfalse,
            
    padding10,
            
    buttons: [{
                
    text'Submit',
                
    handler: function(){
                    
    basicInfo.getForm().submit({
                        
    params: {
                            
    foo'bar',
                            
    uid34
                        
    }
                    });
                }
            }],
            
            
    defaults: {
                
    anchor'-20'
            
    },
            
            
    defaultType'textfield',
            
    items: [{
                
    fieldLabel'Name',
                
    name'name'
            
    }, {
                
    fieldLabel'Email',
                
    msgTarget'side',
                
    name'email'
            
    }, {
                
    fieldLabel'Company',
                
    name'company'
            
    }],
            
            
    api: {
                
    loadmyDirect.direct.action_get
                
    //submit: myDirect.direct.action_update
            
    },
            
    paramOrder: ['item1''item2''id']
        
        });
        
        var 
    accordion = new Ext.Panel({
            
    layout'accordion',
            
    layoutConfig: {
                
    autoWidthfalse
            
    },
            
    renderToExt.getBody(),
            
    title'My Profile',
            
    width300,
            
    height240,
            
    items: [basicInfo]
        });
        
        
    basicInfo.getForm().load({
            
    params: {
                
    id1,
                
    item1'item1',
                
    item2'item2'
            
    },
            
    //waitMsg: 'Load...',
            
    success: function(formaction){
                
    console.log("SUCCESS");
            },
            
    failure: function(formaction){
                
    console.log("FAILURE");
                            
    Ext.Msg.alert("Load failed"action.result.errorMessage);
            }
            
        });
        
    }); 
    response:
    PHP Code:
    {"action":"direct","method":"action_get","type":"rpc","tid":2,"result":{"success":true,"data":{"foo":"aaa","name":"aaa aaa","company":"i1: item1, i2: item2, i3: 1","email":"aaa@aaa.aaa"}}} 
    error:
    PHP Code:
    this.processResponse is not a function
    var 
    result this.processResponse(response); 
    Aj

    I have API param lenght as string, must by a integer:
    PHP Code:
    Ext.app.EXTDIRECT_API = {"url":"http:\/\/localhost\/kohana\/pl\/extdirect\/router","type":"remoting","actions":{"direct":[{"name":"action_get","len":   "3"   }],"index":[],"news":[],"page":[],"signin":[],"signout":[]},"namespace":"myDirect" 
    ok:
    PHP Code:
    Ext.app.EXTDIRECT_API =  {"url":"http:\/\/localhost\/kohana\/pl\/extdirect\/router","type":"remoting","actions":{"direct":[{"name":"action_get","len":   3   }],"index":[],"news":[],"page":[],"signin":[],"signout":[]},"namespace":"myDirect" 
    Last edited by atze; 2 Jul 2010 at 1:30 AM. Reason: SOLVED

Similar Threads

  1. Modifying Treeloader processResponse modifying loadedjson
    By emredagli in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Jun 2009, 12:59 AM
  2. DataView inside Form - load values from form load
    By SchattenMann in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 4 Jun 2009, 8:29 AM
  3. Replies: 10
    Last Post: 11 Mar 2009, 12:54 AM
  4. this.root.render is not a function or loader.load is not a function
    By benjamin.roveri in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 2 Mar 2008, 2:12 AM
  5. Replies: 0
    Last Post: 2 Mar 2008, 2:12 AM