javascript - php web server and HTML -
i have inherited php site returning html pages. thought server returns data client , client decides how show results. though working, not tight coupling between server , client?
i have thought better way handle client code, javascript or gwt or have ask needed data , server returning data such json object or similar thing.
thoughts on this?
it sounds benefit making ajax call (via js) php page, manipulating data (json object, string of comma delimited data, raw html, etc.) returned on client side.
sorry bad previous example, example more sophisticated, modern example of how ajax call should made.
Comments
Post a Comment