There is a page refresh script every 2 seconds.
<script type="text/javascript"> function runMultiple() { $.ajax({ url: 'create/index/news.dat', // ваш файл success: function(data) { $("#content").html(data); // блок, который обновляем } }); } var timerMulti = window.setInterval("runMultiple();", 2000); // 2000 миллисекунд </script> <div id='content' /> but in the file create / index / news.dat there are many include'ov and they are not displayed on the page
Uncaught ReferenceError: runMultiple is not defined; because:window.setInterval("runMultiple();", 2000);. I advise you to read some textbook before starting programming (practice without theory is a method of scientific typing); for example, Learn.JavaScript.Ru. - Roman Grinyov