[luci] Run a luci.sys.call() when a page loads

bee b beeworksdev at gmail.com
Fri Dec 6 11:24:21 CET 2013


you can try  " m.on_after_commit" ,May be you can try this ..


On Fri, Dec 6, 2013 at 3:49 PM, Tek Wiz <tx2023 at gmail.com> wrote:

> I managed to find out:
>
> The m.on_init function runs when the page is loading.
>
> Now I want to run a script *after* a page finishes loading and stabilizes,
> e.g. after clicking save and apply, the channel scan is going on and the
> waiting circle on the webpage is still moving.
>
> When the waiting circle icon disappears, the script should run.
> How to do this?
>
> Thanks
>
>
> On Fri, Dec 6, 2013 at 5:08 PM, Tek Wiz <tx2023 at gmail.com> wrote:
>
>> How do I run a luci.sys.call() when a page loads e.g. wifi.lua for the
>> Wifi tab?
>>
>> I keep getting a web page filled with html code only.
>>
>> I tried putting it in function m.parse(map) or between the s:taboption.
>>
>> Thanks
>>
>>
>
> _______________________________________________
> luci mailing list
> luci at lists.subsignal.org
> https://lists.subsignal.org/mailman/listinfo/luci
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsignal.org/pipermail/luci/attachments/20131206/610a08fa/attachment-0001.html>


More information about the luci mailing list