Use this following code to reload page every few seconds as required -
<script type="text/javascript"> setTimeout(function () { location.reload(); }, 60 * 1000); </script>
--
Shree Kant Bohra
Shree Kant Bohra
Co-founder
Geekybuddha Technologies
On Sun, Nov 26, 2017 at 10:50 AM, Unnati C <unnatic312@gmail.com> wrote:
Thanks for suggestion Yingi Kem, But I am looking for any javascript or any other logical solution to refresh my web page automatically.--Unnati
On Saturday, November 25, 2017 at 10:32:51 PM UTC+5:30, yingi keme wrote:You can use channels. Check out channels in django. It is a websocket library and it will be useful for what you are looking for
Yingi KemWeb page is about displaying data from database, Till now webpage is displaying data, but if I want to see latest update I have to refresh page in browser. Is their any solution to auto reload page so user at end doesn't have to refresh it.--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a7a12b04-bec0 .-4d08-aaf9-e7b3b4d6a117%40goog legroups.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com .
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1953d398- .f31d-4bdd-b776-bcab0391afac% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAD5EYcotgk6Lib-cS149VBF31ZvffseZ37t%2BHZowDumVkB9RjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment