Ajax technology allows to separate web-application functionality into two distinct layers: presentation, and data. Ideal situation is when the fat presentation part, consisting of HTML, and CSS, and JavaScript files, only downloaded by the browser once - when opening the web-application. After that the opened web-application, and the server only exchange by light-weight data chunks, say in JSON format.
As a textbook example here is a web app, consisting of HTML file:
, and a JS file:
No comments:
Post a Comment