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

Tek Wiz tx2023 at gmail.com
Mon Dec 9 08:21:22 CET 2013


Many thanks for all your advice.


On Fri, Dec 6, 2013 at 10:01 PM, Le Tran Dat <trandatnh at gmail.com> wrote:

> I think m.on_after_apply may fit you case.
>
> The page filled with full of html code is because your lua script is
> failed somewhere. Check any suspicious piece of code and comment it to see
> if the page is able to render.
> On Dec 6, 2013 6:41 PM, "bee b" <beeworksdev at gmail.com> wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> luci mailing list
>> luci at lists.subsignal.org
>> https://lists.subsignal.org/mailman/listinfo/luci
>>
>>
> _______________________________________________
> 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/20131209/fd60470f/attachment.html>


More information about the luci mailing list