i find the no of users in online but it is not updating
i find the no of users in online but it is not updating regularly. it updates when page is refreshed but i want it to update when a new user loges in without refreshing.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
bhargav batchuPosted Aug 27, 2014, 7:03 AM
Pradeep ShetPosted Aug 27, 2014, 4:11 AM
You can achieve this by 2 ways
On page header set this tag with interval and url
<meta http-equiv="refresh" content="10; ,URL=/abc.aspx">
Or
You can call javascript function
window.setTimeout(functionname, interval);
where functionname can be any function within which you have set the url to redirect like
function fn()
{
window.location = 'abc.aspx';
}
I hope this solves your problem. Please mark it as answered if it is so.