I'm using AJAX to update a partial on a page every few seconds with a setInterval function, but for some reason it just throws an alert popup "AJAX handler 'onRefreshTime' was not found." Here's the code I'm using as it is placed in my layout:
</body>
<script src="{{ 'assets/vendor/jquery.js'|theme }}"></script>
<script src="{{ 'assets/vendor/bootstrap.js'|theme }}"></script>
<script src="{{ 'assets/javascript/app.js'|theme }}"></script>
{% framework extras %}
{% scripts %}
<script>
jQuery(document).ready(function($) {
setInterval(function () {
$.request('onRefreshTime', {
update: { msgs: '#msgs' }
})
}, 3000);
});
</script>
And here is the partial as it is placed on my page:
<div id="msgs">
{% partial "msgs" %}
</div>