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?
views:
27answers:
1
+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
2010-03-18 13:50:20
JavaScript can do more than that: http://en.wikipedia.org/wiki/Server-side_JavaScript
Gordon
2010-03-18 13:53:46
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
2010-03-18 13:55:55