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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -