W3C home > Mailing lists > Public > public-webapi@w3.org > September 2007

Form Serialization Idea

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Tue, 11 Sep 2007 13:22:55 -0700
Message-ID: <c9e12660709111322v4668eb9fr7b43168d5d4a478d@mail.gmail.com>
To: public-webapi@w3.org

I've started a document a while back. It's related to Robin's File and
FileList proposal, taking it a step towards complete FORM
serialization. Robin suggested I post my idea up here, so here goes...

The problem: No standard, reliable way to get FORM data to an Ajax request.

Proposal:
interface HTMLFormElement {
  string getDataSetString(); raises FileException
  string toJSONString(); raises FileException
};

I've tried to exhaust the pros and cons of other possible solutions,
and provided numerous references here:
http://dhtmlkitchen.com/rec/FormSerialization.html

The proposed functionality is hand-rolled into every Ajax libary
(using javascript), and the logic to get the FORM's successful
controls is more complicated than it initially would seem. It's
problematic to have to depend on a library when the library components
are interdependent on other library components. For example, use YUI,
jQuery, or Prototype, but don't mix them in the same page.

Garrett

-- 
Programming is a collaborative art.
Received on Tuesday, 11 September 2007 20:23:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT