| re: Client side vs. Server side JavaScript
"byuedwin" <byuedwin@gmail.com> wrote in message
news:1107910279.327537.313260@f14g2000cwb.googlegr oups.com...[color=blue]
> Hello,
>
> I am starting a new website, and I would like to decide ahead of time
> what functions (in JavaScript) I will need to write on the server side
> and which ones on the client side. I believe that some validations are
> important on the client side, and I am thinking of writing some php
> validations for the server side. What types of functions are usually
> written on the server side?
> What types are usually written on the client side?
>
> I am making my pages in php.
>
> 1. In this site users will be able to log in.
> 2. I will have a register page.
> 3. My accounts page.
> 4. And a page that they can post listings in.
> 5. An admin page that will keep track of billing accounts.
>[/color]
Validation of data the user enters in registration forms etc should be
checked client side as they can then correct those mistakes straight away
rather than sending off the incorrect info and then being asked to make the
changes. It's quicker that way. |