Mailinglist Archive: yast-devel (126 mails)

< Previous Next >
Re: [yast-devel] WebYaST: Only write back actual changes !
  • From: "Duncan Mac-Vicar Prett" <dmacvicar@xxxxxxx>
  • Date: Fri, 13 Nov 2009 18:07:25 +0100
  • Message-id: <200911131807.26165.dmacvicar@xxxxxxx>
On Friday 13 November 2009 17:29:05 Klaus Kaempf wrote:
* Josef Reidinger <jreidinger@xxxxxxx> [Nov 13. 2009 17:26]:
But if we solve it on REST-layer and ActiveResource detects that there is
no change, he can avoid calling to rest-service which could save same
time (question is who send form with no data change).

You can move the detection even before the REST-layer and do it
completely on the Browser-Client level.

Add hidden input fields to each form, containing the original values,
and have the client do the comparison on each <submit ...>

Which is what the jquery plugins do, automatically, without need to do those
acrobatics on every form.

--
Duncan Mac-Vicar P. - Engineering Manager, YaST
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >