Roo/form/BasicForm.js
[roojs1] / roojs-debug.js
index 6e12567..342730d 100644 (file)
@@ -47358,6 +47358,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 = {}
+            formData.entries().forEach(function(pair) {
+                ret[pair[0]] = pair[1]; // not sure how this will handle duplicates..
+            });
+            return ret;
+        }
         
         
         var fs = Roo.lib.Ajax.serializeForm(this.el.dom);