Basic Plugin Test

Using plugin access method Three.

Please select a method appropriate to the version of php running on your host:
PHP4 & PHP5 PHP5 PHP5 (type 2)
printControlPanel(ob_get_clean()); $objTestScriptPlugin->printStatusPanel(); $objTestScriptPlugin->printLogPanel(); ob_start(); ?>

This test script demonstrates the ability to declare and register response plugins then use the registered plugin to send back new response commands to the client.

To use this script, select an option (above) that matches your server configuration; all methods can be used on a PHP5 based server.

The plugin will register a javascript command handler, then, upon request, it will add a response command that will be sent back to the client, invoking the command on the browser.

In this case, the plugin simply shows an alert dialog beginning with the text 'Test plugin command received:' then some data sent from the server.

The test script also outputs a preformatted string that represents a response object that includes the plugin response command. NOTE: This is not a copy of the response that IS sent to the browser, just an example of one.