I have inherited a php site that is returning HTML pages. I always thought that the server returns data to the client and the client decides how to show the results. Even though this is working, is this not a very tight coupling between the server and the client?
I would have thought a much better way to handle this is for the client code, javascript or gwt or what have you to ask for the needed data and the server returning that data only such as JSON object or a similar thing.
Thoughts on this?