[luci] refreshing site after pressing a button
Lucile Quirion
lucile.quirion at savoirfairelinux.com
Sat Jan 31 00:38:25 CET 2015
Hi Martin,
> I know this is a strange example but I ran into the same problem with a
> button I used to execute a shell script. The script created a
> ssh-connection to a remote host and I wanted existing connections to be
> listed on the page. When I was pressing the button the connection has
> been established, but I needed to reload the page before getting the
> list of connections shown.
> Can anyone give me a hint how to get this done?
You can reload the page in the write function:
luci.http.redirect(luci.dispatcher.build_url("your", "page"))
--
Lucile
More information about the luci
mailing list