Re: Reducing duplicated business rules - Mailing list pgsql-php

From Bruno Wolff III
Subject Re: Reducing duplicated business rules
Date
Msg-id 20031106192038.GA21921@wolff.to
Whole thread Raw
In response to Re: Reducing duplicated business rules  (Michael Glaesemann <grzm@myrealbox.com>)
Responses Re: Reducing duplicated business rules
List pgsql-php
On Fri, Nov 07, 2003 at 01:16:54 +0900,
  Michael Glaesemann <grzm@myrealbox.com> wrote:
>
> what you've written, I'm guessing this is exactly it. Using JavaScript
> allows the client—rather than the server—do the checking. It seems to
> me you'd pay an initial hit (downloading more into the client), but you
> don't have to keep using the server to process/validate/check the data.
> Am I close?

The server still has to do the validity checking. Often pages set up
this way don't work when javascript isn't available. What you save
are round trips when the data is messed up. That may or may not be
better depending on how large the form is wtih and without javascript,
what the rate of mistakes is, what the available bandwidth is and
how loaded the server is.

pgsql-php by date:

Previous
From: Michael Glaesemann
Date:
Subject: Re: Reducing duplicated business rules
Next
From: Bruce Momjian
Date:
Subject: Re: Support for prepared queries