1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    5
    Vote Rating
    0
    Cem is on a distinguished road

      0  

    Default Always failure

    Always failure


    Hi,

    I do not know the reason but in all case my success function could not be called despite having a success response from server.

    Code:
    var live_panel =  new Ext.FormPanel({
    	labelWidth: 75, 				
    	frame:true,
    	title: 'Reklamı Form',
    	bodyStyle:'padding:5px 5px 0',
    	width: 1250,
    	defaults: {width: 230},
    	defaultType: 'textfield',
    	items: [{
    			fieldLabel: 'User ID',
    			name: 'userId'
    		}
    	],
    
    	buttons: [{
    		text: 'Ara',
    		handler: function(){
    				if(live_panel.getForm())
    				{
    					live_panel.getForm().load(
    						{
    							url:'/service/backoffice/personal/promotion/clickers',	
    							params:{userId: 112},
    							method: 'GET',
    							failure: function(form, action){
    								console.log(action.failureType);
    								console.log(action.response);
    								console.log(action.result);
    								console.log(action.type);
    							},
    							success:function(form, action){
    								console.log("success");
    							}
    						}
    					);
    					
    				}
    		}
    	}
    	]
    });
    I can see successful GET requests in my firebug console however always failure function is called...

    Any reason about this?

  2. #2
    Ext User
    Join Date
    Mar 2010
    Posts
    5
    Vote Rating
    0
    Cem is on a distinguished road

      0  

    Default


    Sorry for posting in wrong place...

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    58
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Is your JSON valid according to http://www.extjs.com/deploy/dev/docs....Action.Submit ?

Thread Participants: 1