AJAX: Javascript templating for updating html with JSON response
February 9th, 2014Updating a web page with new data from a response after an AJAX call is a very common task, but still many developers send entire html chunks in the response to the javascript, probably mostly due to laziness, while others send JSON but have prepared html in the javascript file which isn’t much better and could be a hassle to modify at a later stage.
(more…)