W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] Forms: Submit only changed inputs

From: dolphinling <dolphinling@myrealbox.com>
Date: Wed, 08 Feb 2006 13:43:37 -0500
Message-ID: <43EA3BD9.3020302@myrealbox.com>
Ric Hardacre wrote:
> ...
> only send input elements that have changed (i.e. are different to the 
> "reset" state of the form). 

This has been proposed several times and is listed in the "For Future 
Versions" comments (view the source) at the bottom of the WF2 draft. In 
fact, it's listed twice, once as
  * only submit fields that have changed
and once as
  * A way to include in the submission a list of which form controls
    were changed from their default value.

In terms of the actual proposal you made, what's the point of those 
hidden fields you added? Why can't you just leave them out, so you have

   <input type="text" name="000_name" value="john smith">
   <input type="text" name="000_email" value="john.smith at hotmail.com">

   <input type="text" name="001_name" value="jane doe">
   <input type="text" name="001_email" value="janethebrain at hotmail.com">

   <input type="text" name="002_name" value="uncle sam">
   <input type="text" name="002_email" value="bigsam101 at gmail.com">

...and when the user changes "jane doe" to "janet doe", you get

   001_name="janet doe"

...? Then all you need to do is update the 001_name.

Received on Wednesday, 8 February 2006 10:43:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:26 UTC