Results 1 to 4 of 4

Thread: JSON error too much recursion

  1. #1
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72

    Question JSON error too much recursion

    i get this error: too much recursion at my ajax request to a php file

    PHP Code:
                    tmpadv 'blablablablablabla';
                    
    tmpgroup 'blablablablablabla';
                    
    tmpc 'blablablablablabla';
                    
                    
    tmpdata tmpadv ';' tmpgroup ';' tmpc;
                    
                    
    Ext.Ajax.request({
                        
    url'inc/process.php',
                        
    params: {
                            
    op'wizard',
                            
    dataExt.util.JSON.encode(tmpdata),
                        
                            
    s1Ext.util.JSON.encode(store1),
                            
    s2Ext.util.JSON.encode(store2),
                            
    s3Ext.util.JSON.encode(store3)
                        },
                        
    method'POST',
                        
    success: function(resultrequest){
                    
                        },
                        
    failure: function(resultrequest){
                        },
                    }); 
    each of the stores has only 3 or 4 records with 4columns : so itisnt soo much but why i cant send this little bit of data ?

    the blablablabla is the same length of code which will be collect from a different variable. so dont hang on it

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    You can't encode a store. It contains circular references.

    You need to collect the store data and encode that, e.g.
    Code:
    var data1 = [];
    store1.each(function(r){
      data1.push(r.data);
    });

  3. #3
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72

    Default

    ok thank you Condor, im going to try it out.

    and thanks for the other post too.

  4. #4
    Ext User
    Join Date
    Nov 2010
    Location
    Turkey
    Posts
    72

    Default solved, thanks to Condor

    it worked, thank you Condor

Similar Threads

  1. Direct calls throws too much recursion Error
    By trentcioran in forum Ext.Direct
    Replies: 2
    Last Post: 23 Nov 2009, 6:45 AM
  2. Too much recursion JSON Button
    By carlosjpedro in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 10 Nov 2008, 1:04 AM
  3. 'too much recursion' error?
    By jfb_1973 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jun 2008, 9:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •