jquery - update the html page with ajax for every 5 seconds -
jquery - update the html page with ajax for every 5 seconds -
well have used html file these in iframe
<iframe src="sample.html"></iframe>
is there way refresh these html file every 5 seconds using ajax not refreshing user rather should updating
i know way in javascript looks ugly, refreshing icon keeps on refreshing in browser.i want avoid possible these in ajax should not refreshing?thanks
try this
$(function () { setinterval(function () { var x = $('iframe').attr('src'); $('iframe').attr('src', x); }, 5000); })
ajax jquery
Comments
Post a Comment