[luci] how to call onload function at template htm file?

ZDC 3312 zsv(赵松) zsv at zcom.com.cn
Fri Oct 31 08:34:07 CET 2014


 

Hi

 

In html, I can use <body onload=”somefunction();”>to call somefunction(),
when I want do something before load, how to do this at luci htm file?

XHR.poll,looks like autorefesh, but I want to do it only once, can I use
XHR.poll? 

 

XHR.poll(5, '<%=REQUEST_URI%>', { status: 1 },function(x,info){}),can you
tell me what`s mean of this?

 

Thank you!

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20141031/70d8c35b/attachment.html>


More information about the luci mailing list