How to refresh data in real time

How to refresh data in real time

I have question, 1. If I make some update for a record thru widget, how to reflect the changes without refresh page?

2. If I made some update for a record thru function, how to reflect the changes without refresh page?