You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They can not receive any user input once they are started and they are divided into the following two subtypes:
158
+
They can not receive any user input once they are started and are divided into the following two subtypes:
160
159
161
160
***Page-producing scripts:**
162
161
They produce complete HTML pages and no special settings are necessary when they are called from a local page. There can be multiple chunks of output from such a script - PEB accumulates them all and displays everything when the script is finished.
@@ -190,7 +189,7 @@ The pseudo-user ``interactive`` is the token used by PEB to detect interactive s
190
189
191
190
The ``target`` query string item should point to a valid HTML DOM element or to a valid JavaScript function. Every piece of script output is inserted immediately into the target DOM element of the calling page or passed to the specified JavaScript function as its first and only function argument. The calling page must not be reloaded during the script execution or no script output will be inserted.
192
191
193
-
The ``close_command`` query string item designates the command used to shut down an interactive script when the containing PEB window is going to be closed. Upon receiving it, the interactive script must start its shutdown procedure. Immediately before exiting the interactive script must print on STDOUT its ``close_confirmation`` to signal PEB that it completed normally its shutdown. If PEB receives no ``close_confirmation`` from all interactive scripts in the window that is going to be closed in 5 seconds, it will kill the processes of all unresponsive interactive scripts.
192
+
The ``close_command`` query string item designates the command used to shut down an interactive script when the containing PEB window is going to be closed. Upon receiving it, the interactive script must start its shutdown procedure. Immediately before exiting, the interactive script must print on STDOUT its ``close_confirmation`` to signal PEB that it completed normally its shutdown. All interactive scripts in a window that is going to be closed must exit in 5 seconds after ``close_command`` is given or the processes of the unresponsive scripts will be killed and the window will be closed.
194
193
195
194
The following JavaScript code demonstartes how to start an interactive Perl script immediately after its calling HTML page is loaded:
196
195
@@ -521,5 +520,5 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
521
520
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
0 commit comments