1. #1
    Ext JS Premium Member
    Join Date
    Oct 2010
    Vote Rating
    iamcam is on a distinguished road


    Default successProperty in AJAX form submission

    successProperty in AJAX form submission

    I'm trying to get an AJAX form submission to take JSON response data and consider it a success using a different key besides success: true (default). I've tried just about everything I can imagine, but still can't figure this out.

    Actually, I will say this. I know that successProperty isn't listed as a supported method, so why should I expect it to work? I guess I expected it to because it's an AJAX request. Is there any other way to modify the parameters before sending the data?

    You may be wondering: And why can't I just write success: true into the JSON API? Short answer - it's not mine.

    Any help, tips, pointers are greatly appreciated!

    Take care,

    this.homeLoginForm = new Ext.form.FormPanel({
    	successProperty: 'somethingElse', // override the default success: true
    	standardSubmit: false,
    	itemId: 'homeLoginForm',
    	url: 'dummydata/post.php',
    	defaults: {
    		labelWidth: '33%',
    		 required: true,
    	items: [{
    	            xtype: 'fieldset',
    	            title: 'Log In',
    				instructions: "Please log in",
    	            items: [
    	                    xtype: 'textfield',
    	                    name : 'email',
    	                    label: 'Email',
    	                    xtype: 'passwordfield',
    	                    name : 'password',
    	                    label: 'Password',
    		new Ext.Panel({ //sticking a little panel in there for better button positioning
    			layout: {
    				type: 'hbox',
    				pack: 'end',
    				align: 'stretch'
    			items: [
    			new Ext.Button({ //the submit button
    				text: 'Log In',
    				listeners: {
    					tap: function(){
    						//console.log("Form ", Home.homeLoginForm.items.items[0].items.items);
    						console.log("Hit submit", Home.homeLoginForm.submit());
    	dockedItems: [
    		title: 'Home',
    		dock: 'top',
    		layout: { pack: 'end'},
    		xtype: 'toolbar',
    listeners : {
    	submit : function(form, result){
        	console.log('success', Ext.toArray(arguments));
      	exception : function(form, result){
    		console.log('failure', result);
        	// console.log('failure', Ext.toArray(arguments));

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Vote Rating
    scottguymer is on a distinguished road



    Im having the same issue now. did you ever get a resolution to this??

Similar Threads

  1. Ext.ajax.request form submission.
    By arunns in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 21 Jun 2010, 4:37 PM
  2. Form submission with AJAX
    By Asadjan in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 15 Apr 2010, 1:10 PM
  3. Preventing AJAX form submission.
    By ext-k in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 Mar 2008, 3:00 PM
  4. ajax form submission & post process
    By seldon in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 1 Dec 2006, 6:36 AM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi