1. #1
    Ext User
    Join Date
    Oct 2007
    Posts
    20
    Vote Rating
    0
    joaosobrinho is on a distinguished road

      0  

    Default Empty POST submit

    Empty POST submit


    Hi.

    I am constructing a form using HTML and then applying the javascript to it. (although, this problem also happens ramdomlly in another application where the form is constructed using Extjs)

    In the submit i have something like:

    Code:
    if (form_prof.isValid()) {
    	form_prof.submit({
      		params:{
    	 		nome: prof_nome.getValue(),
    			sexo: prof_sexo.getValue(),
    			BI: prof_BI.getValue(),
    	 		dataNasc: prof_data_nasc.getValue(),
    			tel: prof_tel.getValue(),
    			morada: prof_morada.getValue(),
    			codigo_postal: prof_codigo_postalA.getValue()+"-"+prof_codigo_postalB.getValue(),
    			localidade: prof_localidade.getValue(),
    			mail: prof_mail.getValue(),
    			IVA: prof_IVA.getValue(),
    			IRS: prof_IRS.getValue(),
    			numero_cap: prof_numero_cap.getValue(),
    			curriculum_vitae: prof_curriculo.getValue(),
    			_1_1: MDom.getValue(),
    			_1_2: MSeg.getValue(),
    			_1_3: MTer.getValue(),
    			_1_4: MQua.getValue(),
    			_1_5: MQui.getValue(),
    			_1_6: MSex.getValue(),
    			_1_7: MSab.getValue(),
    			_2_1: TDom.getValue(),
    			_2_2: TSeg.getValue(),
    			_2_3: TTer.getValue(),
    			_2_4: TQua.getValue(),
    			_2_5: TQui.getValue(),
    			_2_6: TSex.getValue(),
    			_2_7: TSab.getValue(),
    			_3_1: PDom.getValue(),
    			_3_2: PSeg.getValue(),
    			_3_3: PTer.getValue(),
    			_3_4: PQua.getValue(),
    			_3_5: PQui.getValue(),
    			_3_6: PSex.getValue(),
    			_3_7: PSab.getValue(),
    			formacoes: jsondata
    		},
    		waitMsg:'Processando...',
    		failure: function(form, action) {
    			Ext.MessageBox.alert('Erro', action.result.msg);
    		},
    		success: function(form, action) {
    			Ext.MessageBox.alert('Mensagem', action.result.msg);
    		}
    	});
    }else{
    	Ext.Msg.alert('Erros', 'Verifique todas as caixas marcadas.');
    }
    All the items exist, but when i see in Firebug, the POST is being sent empty.
    I have used the PHP print_r($_POST) command and the array is empty.

    Does anyone have any idea of what is happening ?
    I'm really lost on this...

  2. #2
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    If firebug shows post is empty, php will certainly show it's empty.

    Why not spit out what params is and check it in the console? Or set a break point and check it.

  3. #3
    Ext User
    Join Date
    Oct 2007
    Posts
    20
    Vote Rating
    0
    joaosobrinho is on a distinguished road

      0  

    Default


    I put an alert before the submit with some content that should be sent in the POST, and the value shown is correct.

    The POST is still sent empty.

  4. #4
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    Quote Originally Posted by joaosobrinho View Post
    I put an alert before the submit with some content that should be sent in the POST, and the value shown is correct.

    The POST is still sent empty.
    Some does not equal all correct?

    Code:
      		params={
    	 		nome: prof_nome.getValue(),
    			sexo: prof_sexo.getValue(),
    			BI: prof_BI.getValue(),
    	 		dataNasc: prof_data_nasc.getValue(),
    			tel: prof_tel.getValue(),
    			morada: prof_morada.getValue(),
    			codigo_postal: prof_codigo_postalA.getValue()+"-"+prof_codigo_postalB.getValue(),
    			localidade: prof_localidade.getValue(),
    			mail: prof_mail.getValue(),
    			IVA: prof_IVA.getValue(),
    			IRS: prof_IRS.getValue(),
    			numero_cap: prof_numero_cap.getValue(),
    			curriculum_vitae: prof_curriculo.getValue(),
    			_1_1: MDom.getValue(),
    			_1_2: MSeg.getValue(),
    			_1_3: MTer.getValue(),
    			_1_4: MQua.getValue(),
    			_1_5: MQui.getValue(),
    			_1_6: MSex.getValue(),
    			_1_7: MSab.getValue(),
    			_2_1: TDom.getValue(),
    			_2_2: TSeg.getValue(),
    			_2_3: TTer.getValue(),
    			_2_4: TQua.getValue(),
    			_2_5: TQui.getValue(),
    			_2_6: TSex.getValue(),
    			_2_7: TSab.getValue(),
    			_3_1: PDom.getValue(),
    			_3_2: PSeg.getValue(),
    			_3_3: PTer.getValue(),
    			_3_4: PQua.getValue(),
    			_3_5: PQui.getValue(),
    			_3_6: PSex.getValue(),
    			_3_7: PSab.getValue(),
    			formacoes: jsondata
    		};
    console.log('params = ',params);
    
    
    	form_prof.submit({
      		params:{params},
    What does console log show?

    Did you try adding listeners to proxy and ajax requests?

  5. #5
    Ext User
    Join Date
    Oct 2007
    Posts
    20
    Vote Rating
    0
    joaosobrinho is on a distinguished road

      0  

    Default


    i added the params to the console, and they are ok.

    the POST is still sent empty...

    i tested the form definition, and this happens (in this example) when i use "fileUpload: true," in the form definition.

    The solution is to use the convencional form submit so i am able to send a file with it...


    PS: i still would like to solve this, because this is happening randomly in another form that doesn't send any file...

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