Author Topic: output command with plugin name  (Read 2999 times)

Offline unicorn

  • Jr. Member
  • **
  • Posts: 15
output command with plugin name
« 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');

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
output command with plugin name
« Reply #1 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.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)