how to refresh a part of html page eg: a div

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to refresh a part of html page eg: a div

srikruth
Hi,

I have a question regarding how to refresh data in part of a html page. I have a page with a search button and search results displayed in a table. I would like to refresh the results every time when the search button is clicked without refreshing the page(probably using jquery ajax). Is this feasible using Thymeleaf. I am using Spring MVC and Thymeleaf.
Reply | Threaded
Open this post in threaded view
|

Re: how to refresh a part of html page eg: a div

danielfernandez
Administrator
Yes, this is feasible. For a recent example, have a look at the AJAX section in this article: http://xpadro.blogspot.com.es/2014/02/thymeleaf-integration-with-spring-part-2.html
Reply | Threaded
Open this post in threaded view
|

Re: how to refresh a part of html page eg: a div

srikruth
Thanks. It worked
Reply | Threaded
Open this post in threaded view
|

Re: how to refresh a part of html page eg: a div

Emina
In reply to this post by danielfernandez
Hi, any tutorials for links instead of buttons, since I just need new html (div/fragments)to be loaded when a link is clicked and not so much the data itself that's fetched from the database.