Re: [webmin-devel] adding a "please wait" popup while executing time consuming commands

"Jamie Cameron" <[email protected]> Tue, 20 May 2014 13:19:51 -0700 (PDT)
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On 20/May/2014 09:27 marty leisner <[email protected]> wrote ..
> When having a custom module in webmin execute time consuming commands, how
> would I add a
> "please wait" message until the command is finished (without user
> interaction).
> 
> I.e.:
> 
> start_please_wait();
> system("long_command");
> stop_please_wait();

In some modules, I've had Webmin print out a series of dots (one per second)
while performing some long operation. The code is like :

print "Doing something slow ..";
launch_slow_op_in_background();
while(!done_slow_op()) {
  sleep(1);
  print ".";
  }
print "<br>\n";
print ".. done<p>\n";

 - Jamie

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel