+ Javascript is disabled; cannot update in real-time.
+
+
Auto-refresh every 3 seconds #
+ Manually refresh
diff --git a/templates/longpolling.julius b/templates/longpolling.julius
index 67fe059cf9..affa50cc81 100644
--- a/templates/longpolling.julius
+++ b/templates/longpolling.julius
@@ -1,9 +1,12 @@
function longpoll_#{ident}() {
- longpoll('@{gethtml}', '#{ident}'
+ longpoll(longpoll_#{ident}_url, '#{ident}'
, function() { setTimeout(longpoll_#{ident}, #{delay}); }
, function() { webapp_disconnected(); }
);
}
$(function() {
- setTimeout(longpoll_#{ident}, #{startdelay});
+ $.get("@{geturl}", function(url){
+ longpoll_#{ident}_url = url;
+ setTimeout(longpoll_#{ident}, #{startdelay});
+ });
});