Answer the question
In order to leave comments, you need to log in
How to change the content of only a certain block?
Hello, I am studying the MVC pattern and now when I access a certain url, I take the necessary layout file from the view folder to display the content. The site has a side menu where JS logic is executed (For example, opening blocks, highlighting the active menu item, etc.). I would like not to reload the page and change the content in a specific block. I'm thinking of using ajax requests to the server and getting ready-made layout as a result of rendering using JS. Most likely I have already answered my own question, but suddenly I think wrong. Tell.
Answer the question
In order to leave comments, you need to log in
I'm thinking of using ajax requests to the server and getting ready-made layout as a result of rendering using JS.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question