TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Tabor
587
2k
457.1k
How to refresh a view without flickering effect on all brows
Dec 15 2019 2:38 AM
Hi I have a requirement that i need to refresh a MVC view after every 2 seconds , so what approach can i use i have done it using javascript function it works well , but on IE and firefox it gives flickering problem, My view does not contain only the static data instead it is calling a controller method which shows the count of users after every two seconds . below is the approach i am using
<script type="text/javascript">
function timedRefresh(timeoutPeriod) {
setTimeout(function () {
location.reload(true);
}, timeoutPeriod);
}
</script>
---------------
<meta http-equiv="refresh" content="2" />
Reply
Answers (
2
)
Jquery Datatables plugin
How to Remove row In Gridview Asp.net C#