1. #11
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,570
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    That looks ilke the resposse is in error. So the submit hits the server?

    The response must be Content-Type: text/html

    It must be a valid JSON form submit response according to Ext.form.Action.Submit

    You can examine the HTTP traffic with Fiddler - that's how I debugged my uploads.

  2. #12
    Ext User salvi's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    30
    Vote Rating
    0
    salvi is on a distinguished road

      0  

    Default

    BTW: I have noticed that in Firefox 3.0 some widgets doesn't render properly, eg. grid in my application. So maybe the problem of aaaee2 is because of FF3.0. Have you tried your code with FF2.0?

  3. #13
    aaaee2
    Guest

    Default

    So my code works well in FF-2.0... Now I shall burst into tears ..

    But it not the solution, considering that corporate domain policy at my office does not give the option of a browser to choice for employees for which I develop my app. We use FF-3.0.

    Is the Fiddler can capture only traffic coming through IE7 core? I install them, but can't see any movement in Web Sessions window when surf the web.

  4. #14
    Ext User
    Join Date
    Apr 2008
    Posts
    3
    Vote Rating
    0
    agusgr is on a distinguished road

      0  

    Default

    Hi all,
    I have the same problem. I have a basic fileUpload Form (this is the code):
    Code:
    		
    		var fileField 	= new Ext.form.TextField({
    						id:			'sendSupplyFileFieldId',
    						name:		'sendSupplyFileField',
    						labelStyle:	'martin:5px;padding:5px;width:200px',
    						inputType:	'file',
    						border:	false
    					});
    		var formFile	= new Ext.form.FormPanel({
    					id:			'sendSupplyFormFile',
    					items: 		fileField,
    					autoWidth:	true,
    					fileUpload:	true,
    					isUpload: 	true,
    					url:		"/send/supply",
    					method:		'post',
    						buttons: [ {	text: 'Send',
       						  			iconCls: 	'btn-ico-enviar',
                        				handler:	doPostSendSupply
                        				]
    function doPostSendSupply(){
    		formFile.getForm().submit({
    						success: function (form, action)	{	
    							alert( "success"); 
    							},
    						failure: function (form, action)	{	
    							alert("failure"); 
    							}
    						});}
    I'm using FF3 and IE7 and examining traffic with fiddler. There's no javascript erros but I cannot see the POST request of the submit action in the fiddler captured traffic. I'm missing something?

  5. #15
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,570
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    You see all the other interaction in Fiddler, but just not that form submission?

  6. #16
    Ext User
    Join Date
    Apr 2008
    Posts
    3
    Vote Rating
    0
    agusgr is on a distinguished road

      0  

    Default

    Yes. I can see all the traffic (with FF3 and with IE7).
    I have tried to change
    Code:
    method:	'POST',	\\'post',
    but nothing changes.

  7. #17
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,570
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    You'll have to step right into the guts of Ext then.

    I had to do this too. Right into Ext.lib.Ajax. You'll see how it creates a temp iframe, changes the form's target, creates an onload handler for the iframe and submits the form.

    Good old fashioned, line-by-line debugging.

  8. #18
    Ext User
    Join Date
    Apr 2008
    Posts
    3
    Vote Rating
    0
    agusgr is on a distinguished road

      0  

    Default

    OK. I hope someday I can post the solution,
    Thanks!

  9. #19
    Ext User salvi's Avatar
    Join Date
    Mar 2007
    Location
    Warsaw, Poland
    Posts
    30
    Vote Rating
    0
    salvi is on a distinguished road

      0  

    Default

    BTW: what about Ext "incompatibility" with FF3.0? Ext must be rewritten? Or maybe Firefox? :-) Animal, do you know anything about these issues?

  10. #20
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,570
    Vote Rating
    53
    Animal will become famous soon enough Animal will become famous soon enough

      0  

    Default

    It's fixed in SVN just waiting to be released. I don't know when they plan to do it.