1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    5
    Vote Rating
    0
    trentcioran is on a distinguished road

      0  

    Question Direct calls throws too much recursion Error

    Direct calls throws too much recursion Error


    Hi guys,

    I recently started to work with Ext.Direct and it is really great , well it was a pleasure until i found a problem, i don't know if it is a bug or i'm doing something worng (wich could be the case but how to know), wel my case is this:

    I have a form in which i want to load some data, and i'm using the direct api, here the code

    Code:
    FormBase = Ext.extend(Ext.Window, {
    	modal: true,
    	layout: 'fit',
    	height: 500,
    	width: 500,
    	formXtype: null,
        initComponent: function() {
            Ext.apply(this, {
    			items: this.form = new Ext.form.FormPanel({
    				api: this.api,
    				paramOrder: ['Id'],
    				layout: 'fit',
    				frame: false,
    				border: false,
    				items: {
    					xtype: this.formXtype
    				},
    				buttons: [{
    					text: 'Save',
    					handler: this.onSave,
    					scope: this
    				}, {
    					text: 'Cancel',
    					handler: function() {
    						this.close();
    					},
    					scope: this
    				}]
    			})
    		});
            FormBase.superclass.initComponent.call(this);
    		
    		this.addEvents('saved');
    		this.show();
        },
    	
        onRender: function() {
            FormBase.superclass.onRender.apply(this, arguments);
    		if (!Ext.isEmpty(this.RecordId)) {
    			this.form.load({
    				params: {
    					Id: this.RecordId
    				}
    			});
    		}
        }
    });
    the this.api variable handles the specific api specification for the module, in this case it is

    Code:
    api: {
    	submit: ManageChildren.SaveForm,
    	load: ManageChildren.LoadForm,
    	destroy: ManageChildren.DeleteForm
    }
    the direct api config is this

    Code:
    Purple.REMOTING_API={ "actions" : { 
          "ManageChildren" : [ { "len" : 4,
                "name" : "GetList"
              },
              { "len" : 1,
                "name" : "LoadForm"
              },
              { "len" : 1,
                "name" : "DeleteForm"
              },
              { "formHandler" : true,
                "len" : 1,
                "name" : "SaveForm"
              }
            ]
        },
      "type" : "remoting",
      "url" : "/DirectRouter.ashx"
    };

    I'm doing this because the form is loaded as a result of a double click event in a grid where i show the child data, but when the form is shown the browser freezes and after a few seconds firefox shows me the error:

    too much recursion ext-all-debug.js (línea 11532 [the line varies])

    }else if(Ext.isArray(o)){\n


    I'm also trying to perform de thelete using the api ManageChildren.DeleteForm(id); with the same too much recursion error result.


    Am i doing something wrong?


    Thanks

    TrentCioran

  2. #2
    Sencha User
    Join Date
    Dec 2007
    Posts
    17
    Vote Rating
    0
    aritchie is on a distinguished road

      0  

    Default


    paramsAsHash: false

    I always set this with or without parameters being passed. I stopped having the recursion problem.

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    5
    Vote Rating
    0
    trentcioran is on a distinguished road

      0  

    Default [SOLVED] Direct calls throws too much recursion Error

    [SOLVED] Direct calls throws too much recursion Error


    Thank you aritchie!!!

    That solved my problem

Thread Participants: 1

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..."