Roundcube Community Forum

Release Support => Release Discussion => Topic started by: unicorn on January 21, 2011, 09:39:49 AM

Title: output command with plugin name
Post by: unicorn on January 21, 2011, 09:39:49 AM
Is there any way how from php can be send plugin to output, which is registered in client in javascript file?

Something like this:
$rcmail->output->command('plugin.myplugin');
Title: output command with plugin name
Post by: rosali on January 21, 2011, 10:26:24 AM
You can't send commands from PHP to the browser directly.

The browser has to request an action. It can be done by Javascript/AJAX or by requesting a URL with a query string (http://myroundcube_residence.com/?what=that).

It is always the same:

Client Request => Server Response => Client process the response.