var wifidevs = <%=luci.http.write_json(netdevs)%>;
var arptable = <%=luci.http.write_json(arpcache)%>;
- (function() {
+ var update_status = function() {
iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", table.concat(netlist, ","))%>', null,
function(x, ifcs)
{
}
}
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<fieldset class="cbi-section" style="display:none">
<script type="text/javascript"><![CDATA[
var iwxhr = new XHR();
- (function() {
+ var update_status = function() {
iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "iface_status", self.network)%>', null,
function(x, ifc)
{
else if (d)
d.innerHTML = '<%:Interface not present or not connected yet.%>';
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<table>
<script type="text/javascript"><![CDATA[
var stxhr = new XHR();
- (function() {
+ var update_status = function() {
stxhr.get('<%=luci.dispatcher.build_url("admin", "network", "dhcplease_status")%>', null,
function(x, st)
{
tb.rows[0].parentNode.appendChild(tr);
}
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<fieldset class="cbi-section">
var wifidevs = <%=luci.http.write_json(netdevs)%>;
var arptable = <%=luci.http.write_json(arpcache)%>;
- (function() {
+ var update_status = function() {
iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "wireless_status", table.concat(netlist, ","))%>', null,
function(x, st)
{
img.src = '<%=resource%>/icons/wifi' + (devup[dev] ? '' : '_disabled') + '.png';
}
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<h2><a id="content" name="content"><%:Wireless Overview%></a></h2>
<script type="text/javascript"><![CDATA[
var iwxhr = new XHR();
- (function() {
+ var update_status = function() {
iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "wireless_status", self.ifname)%>', null,
function(x, iw)
{
else if (d)
d.innerHTML = '<%:Wireless is disabled or not associated%>';
}
+
+ window.setTimeout(update_status, 5000);
}
)
+ };
- window.setTimeout(arguments.callee, 5000);
- })();
+ update_status();
]]></script>
<table>