aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-19 22:52:31 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-19 22:52:31 -0700
commitba8da761e669b22e16e1075e0e1e79d8b458af3e (patch)
tree61c82c4cb260a88e4d8659a976f2bfb50035eb18 /view/head.tpl
parentc3fd5ed73202f4dd17dda87ac968b0db4f44d423 (diff)
downloadvolse-hubzilla-ba8da761e669b22e16e1075e0e1e79d8b458af3e.tar.gz
volse-hubzilla-ba8da761e669b22e16e1075e0e1e79d8b458af3e.tar.bz2
volse-hubzilla-ba8da761e669b22e16e1075e0e1e79d8b458af3e.zip
more cleanup - start on ajax
Diffstat (limited to 'view/head.tpl')
-rw-r--r--view/head.tpl17
1 files changed, 17 insertions, 0 deletions
diff --git a/view/head.tpl b/view/head.tpl
index 8ffd63933..b384d6fc0 100644
--- a/view/head.tpl
+++ b/view/head.tpl
@@ -7,3 +7,20 @@
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
+
+<script type="text/javascript">
+// $(document).ready(function() { setTimeout(NavUpdate,10 * 1000); });
+
+function NavUpdate()
+ {
+ $.get("ping",function(data)
+ {
+ $(data).find('result').each(function() {
+ var net = $(this).find('net').text();
+ alert(net);
+ });
+ }) ;
+ setTimeout(NavUpdate,10 * 1000);
+ }
+</script>
+