W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2004

[whatwg] Any way to submit only those parts of a form that havechanged?

From: Ben Meadowcroft <ben@benmeadowcroft.com>
Date: Sun, 12 Dec 2004 02:11:51 -0000
Message-ID: <005401c4dfef$f5f21f80$dd160550@BensPC>
> -----Original Message-----
> From: whatwg-whatwg.org-bounces at lists.whatwg.org 
> [mailto:whatwg-whatwg.org-bounces at lists.whatwg.org] On Behalf 
> Of Ian Hickson
> Sent: 11 December 2004 05:06
> To: dolphinling
> Cc: WHAT WG List
> Subject: Re: [whatwg] Any way to submit only those parts of a 
> form that havechanged?
> 
> 
> On Fri, 10 Dec 2004, dolphinling wrote:
> >
> > I don't feel like doing a detailed readthrough of the spec again 
> > (though
> > I did glance at parts that looked relevant), but is there 
> anything in 
> > WF2 that allows only parts of a form that have changed from their 
> > default value to be submitted?
> 
> There isn't; what would the use case be?

Sometimes it's just nice to know!

Seriously though I recently had to frig this by adding hidden form
elements using Javascript to the form on an onchange handler indicating
when a field had been changed so you don't have to do lookups on the
backend data first to decide if there has been a change or not. You can
then dynamically construct an update statement (in SQL say) that only
updates those fields that have changed (Which might be important if
updating certain fields could lead to lots of potentially expensive
trigger knock ons in the database).

-- 
Ben Meadowcroft
http://www.benmeadowcroft.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3034 bytes
Desc: not available
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20041212/e3528c17/attachment.bin>
Received on Saturday, 11 December 2004 18:11:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:38 UTC