Dynamic Page Updates
Learn Dynamic Page Updates (Spring MVC + AJAX, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Dynamic page updates mean changing part of the visible page, such as a list or a message, after an AJAX call, without loading a new page. Two styles : the server returns JSON and JavaScript builds the HTML, or the server returns an HTML fragment (for example a Thymeleaf fragment) that is inserted into the page. DOM update : use element.textContent for plain text and innerHTML only for trusted markup.