0

i need to refresh data on page without page reload in nodejs. Below code refresh the page without page reload but .hbs file is not found error coming. How can i resolve it.

<script>
$(document).ready(function(){
    $("#contenUpdate").load("abc.hbs");
    var refreshId = 
    setInterval(function(){
        $("#contentUpdate").load("abc.hbs");
    }, 1000);
    $.ajaxSetup({cach:false});
})

//abc.hbs enter image description here

enter image description here

Geeta
  • 33
  • 8
  • This question has already been answered here: https://stackoverflow.com/questions/69314067/how-to-create-a-no-refresh-page-using-jquery-express-and-handlebars – Valiant Feb 28 '22 at 19:32
  • What about Without HBS tho @Valiant is there a way without HBS??? – RagDev Aug 06 '22 at 18:29

0 Answers0