Changed Roo/form/BasicForm.js
[roojs1] / Roo / form / BasicForm.js
index 5beb65a..6ef02c7 100644 (file)
@@ -538,6 +538,15 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             }, this);
         }
         
+        // use formdata
+        if (typeof(FormData) != 'undefined' && asString !== true) {
+            var fd = new FormData(this.el.dom);
+            var ret = {}
+            for(var pair of formData.entries()) {
+                ret[pair[0]] = pair[1]; // not sure how this will handle duplicates..
+            }
+            return ret;
+        }
         
         
         var fs = Roo.lib.Ajax.serializeForm(this.el.dom);