tags:

views:

27

answers:

1

What it the best practices with for example Dom scripting on the client and serverside with php. What should you do with dom and what with php, can I skip installing php and do everything with dom as with php?

+1  A: 

Short answer: no, you cannot skip PHP. With DOM you won't get any data from database etc.

  • Javascript is to enhance user experience. Nothing less, nothing more.
  • Server-side processing is for actual data operations (fetching, storing and computing).
Tomasz Struczyński
JavaScript can do more than that: http://en.wikipedia.org/wiki/Server-side_JavaScript
Gordon
Well, yes, but it's rather un-used technology. I'm not sure, but I understood the question more like 'client-side vs server-side'.
Tomasz Struczyński