[Answer]-How to trigger a refreshing (reloading) of page when a new database entry is added?

1👍

An elegant solution, in my opinion, would be to use Knockout in combination with a polling ajax query to update an observableArray of your model/entity on the page.

Regardless of what JavaScript technology you implement, the only way to update a portion of the page, without reloading the page, is to use JavaScript and an ajax request that requests new data. That data then gets appended to the page.

You can either poll for the data on an interval or take a WebSocket approach for true pub/sub.

Leave a comment