PDA

View Full Version : [DUP] Cannot submit form in modern toolkit



movys
2 Jul 2015, 6:06 AM
With the latest ExtJS 6.0.0.640 the form.submit() method became broken. It used to work fine with previous 6.0.0 beta revisions.

https://fiddle.sencha.com/#fiddle/pqh


Ext version tested:

Ext 6.0.0 rev 640
Browser versions tested against:

Chrome 43
DOCTYPE tested against:

____
Description:

Hitting the submit button results in error in JS console.
Steps to reproduce the problem:

Hit the submit button
The result that was expected:

Form should have been submitted and a success message displayed.
The result that occurs instead:

Uncaught TypeError: Ext.Ajax.parseStatus is not a function

evant
2 Jul 2015, 3:14 PM
Thanks for the report! I have opened a bug in our bug tracker.

bestv2
2 Jul 2015, 5:40 PM
for provisional,you can add the following js to your codeExt.Ajax.parseStatus = function(status) { // see: https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223 status = status == 1223 ? 204 : status; var success = (status >= 200 && status < 300) || status == 304, isException = false; if (!success) { switch (status) { case 12002: case 12029: case 12030: case 12031: case 12152: case 13030: isException = true; break; } } return { success: success, isException: isException };};