I am trying to build a website in MVC 4.0 and knockoutMVC that uses jQuery to update elements on a page, the website will be run from Azure web, the code I have works fine when I run it locally, however when I upload to azure no updates happen on the view. Is there any reason for this to happen. I am using the free Azure trial currently.
I have pulled all the code out and left myself with just a hello world page that will update the time on the page every 4 seconds. However even this won't work.
<script type="text/javascript">
var myVar = setInterval(function () { UpdateTime(); }, 4000);
$(document).ready(function UpdateTime() {
var now = new Date();
$("#time").text(now.toLocaleTimeString());
});
</script>
<h2>HelloWorld</h2>
<label id="time"></label>