PDA

View Full Version : 4.1, 4.2 form submit not working in ie & opera



zzhouag
12 Jul 2013, 2:11 AM
When submit, it's always waiting status, the progress bar always in process

In 4.1 version I found that form submit is also not working in firefox, but can fix it by change

//response.responseText = contentNode.innerText;
to

response.responseText = contentNode.innerText || contentNode.innerHTML;
in Ext.data.Connection onUploadComplete().

In 4.2, this problem fixed in firefox, but still happen in ie & opera,

Please help! Thank you very much!

slemmon
16 Jul 2013, 11:52 AM
Does the form you're testing with contain a fileupload field?

zzhouag
16 Jul 2013, 6:10 PM
yes, I use the filefield

slemmon
16 Jul 2013, 9:45 PM
You might check to see what headers the server is responding with. You'll need to respond with Content-Type: text/html



The server response is parsed by the browser to create the document for the IFRAME. If the server is using JSON to send the return object, then theContent-Type (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17) header must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body.

Documented here: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.Basic-method-hasUpload