- From: Garrett Smith <dhtmlkitchen@gmail.com>
- Date: Wed, 8 Aug 2007 13:42:08 -0700
Most libraries now are providing a way to serialize a form. It would be useful to have: HTMLFormElement.prototype.toJSONString HTMLFormElement.prototype.getDataSetString HTMLFormElement.prototype.toJSONString would return an object literal that contains the enabled (not readonly) form element names as keys and an array for each key's value. aForm.getDataString() would return a serialized data set representation of the form's successful controls. It would look just like what you see in a GET query string or a POST body. This does not cover binary files. Is it feasible to serialize a file? This does not cover setting values, only reading them. Garrett
Received on Wednesday, 8 August 2007 13:42:08 UTC