So what you need to do is to add the AjaxCall scriptlibrary to your database.
Call the function PartialDomino.onloadAjax() in your onload event
Now all refresh events on the form will be handles as partial refresh.
If you want to also add clicks from a button, give the button a id and add that id using PartialDomino.addPartialRefreshId(“refresh”,””)
The next time the button is clicked a partial refresh is done.
If you would have added a second id to the function, only the element with that id will be replaced after the refresh.
Download the database and see the working example