mercredi 17 juin 2020

MVC pattern: js code that is calling server via ajax part of view or controller?

I know that the webpage that is opened by the user is part of the view. This one is easy, but what about js code calling the server to retrieve data via ajax? Is this part of the controller or still the view?

Can the view request data like this?

Thank you very much for any help.

Aucun commentaire:

Enregistrer un commentaire