I currently have a javascript code that should update my partial view every 3 seconds. But it doesn't work for some reason, the timer it self works.
<script>
setInterval(function () {
var obj = document.getElementById("menubar");
obj.innerHTML = "@Html.Partial("/Views/Menu.cshtml")";
}, 3000);
</script>
This is my code, i am new to javascript. So i have no idea what's wrong. I tried to show my session as well, didn't work either.
Any help?