Originally Posted by Manyak
What i meant by altering layout is because it doesn't really alter the page you get from the server, it just changes what is displayed. Like showing/hiding tables, loading pre-defined arrays into drop down boxes, etc. But every time you visit that page you get the exact same data.
While with PHP, the data itself gets changed.
Thats what I was trying to get at, I just suck at explaining things sometimes.
The reason it is not used that way are simple:
- js is very slow
- People can disable it on their Browser
- js is a Script Design language and one of the worsted of them, many Programmers dislike it
Only as it runs client side it can not access a database directly.
But this can also be done with asp, jsp, ...
The decisions is based on the Servers Hardware (and therefore done by the client ;o) ).
And the sentence on same page every time is also wrong.
JS can run Code (and change the page) based on Cookies or your System Variables (like those "only viewable with IE" pages).Edited by MESeidel - 5/18/08 at 3:44pm