[whatwg] Forms: Submit only changed inputs

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.




-- 
dolphinling
<http://dolphinling.net/>

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