Answer the question
In order to leave comments, you need to log in
How to correctly implement a web application entirely on ajax?
Given: A
dynamic, multi-page web application that displays real-time data.
I don't understand the logic of how it should look like.
I imagine the following:
there is a separate rest api that always returns json
there is a separate controller that is responsible for the initial generation of pages (i.e. the main framework connects all js scripts, styles, etc.) does not manipulate any data
and there is a client part that pulls the api and updates the data.
Maybe I did not quite correctly explain the essence, tk. never dealt with that.
Am I correct, or is there any other way?
Answer the question
In order to leave comments, you need to log in
Well, you imagine everything right, then google single page apps.
With the backend, everything is approximately as you described, on the frontend you will need a Javascript framework sharpened for SPA development (Ember, Angular, Backbone, React + Flux). Well, that is, you can write your bike, but it makes no sense.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question