Jquery Javascript Property Undefined
    	function dadosFormularios(){
    		
    		var dadosFormulario={};
    		var iterador=countForms;
    		var i=0;
    	
    		while(i<iterador){
    
    		dadosFormulario[i]={};
    		dadosFormulario[i]['a']=$('#field\\['+i +'\\]\\[a\\]').val();
    		dadosFormulario[i]['b']=$('#field\\['+i +'\\]\\[b\\]').val();	
    		//alert(dadosFormulario[i]['a']);
    		//alert(dadosFormulario[i]['b']);	
    			i++;
    		}	
    		
    		var qstring = '';
    		
    var tmp_qstring = [];
    var temp1, temp2;
    var a ="a";
    for ( var j = 0; j <=i; j++ )
    {
    temp1=dadosFormulario[j]['a'];
    alert(temp1);
    temp2=dadosFormulario[j]['b'];
    //alert(temp1);
           tmp_qstring[j] = 'a' + j + '=' + temp1 + '&' + 'b' + j + '=' + temp2;
    	   
    }
    qstring = tmp_qstring.join('&');
    alert(qstring);
    
    		window.location = 'dup1.php?'+qstring; 
    
    }	


When i clik on a button i call the above function and now i'm triyng to send the data of the array of objets to another page as you can see in the code.

My problem is that i'm getting trouble when i set "dadosFormulario[j]['a'];" or "dadosFormulario[j]['b'];" to a var or set them directly in the tmp_qstring i.e. "tmp_qstring[j]=dadosFormulario[j]['b'];". In chrome console i get the error:
 "Uncaught TypeError: Cannot read property 'a' of undefined "
Jquery Javascript Property Undefined
===

    	function dadosFormularios(){
    		
    		var dadosFormulario={};
    		var iterador=countForms;
    		var i=0;
    	
    		while(i<iterador){
    
    		dadosFormulario[i]={};
    		dadosFormulario[i]['a']=$('#field\\['+i +'\\]\\[a\\]').val();
    		dadosFormulario[i]['b']=$('#field\\['+i +'\\]\\[b\\]').val();	
    		//alert(dadosFormulario[i]['a']);
    		//alert(dadosFormulario[i]['b']);	
    			i++;
    		}	
    		
    		var qstring = '';
    		
    var tmp_qstring = [];
    var temp1, temp2;
    var a ="a";
    for ( var j = 0; j <=i; j++ )
    {
    temp1=dadosFormulario[j]['a'];
    alert(temp1);
    temp2=dadosFormulario[j]['b'];
    //alert(temp1);
           tmp_qstring[j] = 'a' + j + '=' + temp1 + '&' + 'b' + j + '=' + temp2;
    	   
    }
    qstring = tmp_qstring.join('&');
    alert(qstring);
    
    		window.location = 'dup1.php?'+qstring; 
    
    }	


When i clik on a button i call the above function and now i'm triyng to send the data of the array of objets to another page as you can see in the code.

My problem is that i'm getting trouble when i set "dadosFormulario[j]['a'];" or "dadosFormulario[j]['b'];" to a var or set them directly in the tmp_qstring i.e. "tmp_qstring[j]=dadosFormulario[j]['b'];". In chrome console i get the error:
 "Uncaught TypeError: Cannot read property 'a' of undefined "