$Web On: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(Automatically generated page update)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_On}}
{{DISPLAYTITLE:$Web_On}}
<span class="pageSubtitle"><section begin="desc" />Resume adding terminal output to response<section end="desc" /></span>
<span class="pageSubtitle">Resume adding terminal output to response</span>


<var>$Web_On</var> resumes the routing of terminal output to the client buffer. This buffer is sent to the client at the end of the connection. <var>$Web_Off</var> sends the output to the <var class="product">Model 204</var> audit trail.


<var>$Web_On</var> takes no arguments and returns a status code. It is a [[Calling Sirius Mods $functions|callable]] $function.


$Web_On resumes the routing of terminal output to the client buffer. This buffer is sent to the client at the end of the connection. $Web_Off sends the output to the ''Model 204'' audit trail.
==Syntax==
==Syntax==
<p class="syntax"><section begin="syntax" /> %RC = $Web_On
<p class="syntax"><span class="term">%rc</span> = $Web_On
<section end="syntax" /></p>
</p>


 
===Return codes===
$Web_On takes no arguments and returns a status code. It is a callable $function (see [[Calling_Sirius_Mods_$functions|Calling Sirius Mods $functions]]).
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>Code</th>
<tr><th>Code</th>
<td>Meaning</td></tr>
<th>Meaning</th></tr>
<tr><th>0</th>
<tr><th>0</th>
<td>Completed successfully.</td></tr>
<td>Completed successfully.</td></tr>
<tr><th>-1</th>
<tr><th>-1</th>
<td>Not a web thread</td></tr>
<td>Not a web thread</td></tr>
</table>
</table>
<p class="caption">$WEB_ON return codes</p>
<blockquote> As of Version 6.4 of the ''[[Sirius Mods]]'', output lines that are returned to the client browser by a $Web_On statement are '''not''' wrapped or truncated if their length exceeds the ''Model 204'' LOBUFF parameter setting. Since some browsers do not render very long lines correctly (although no explicit guideline for "very long" is available), testing for your site's expected conditions and client browsers is advised if your output may contain such long lines with no CRLFs (line-wrapping breaks).</blockquote>


For more information about $Web_On and $Web_Off processing, see:
==Usage notes==
<ul>
<ul>
<li>Output lines that are returned to the client browser by a <var>$Web_On</var> statement are '''not''' wrapped or truncated if their length exceeds the <var class="product">Model 204</var> LOBUFF parameter setting. Since some browsers do not render very long lines correctly (although no explicit guideline for "very long" is available), testing for your site's expected conditions and client browsers is advised if your output may contain such long lines with no CRLFs (line-wrapping breaks).
</ul>


<li>[[<var>$Web_Off]]</var>  
==See also==
<li>[[<var>$Web_Flush]]</var>  
<ul>
<li>[[<var>$Web_Put_Text]]</var>
<li><var>[[$Web_Off]]</var>  
<li><var>[[$Web_Flush]]</var>  
<li><var>[[$Web_Put_Text]]</var>
</ul>
</ul>




[[Category:Janus Web Server $functions|$Web_On]]
[[Category:Janus Web Server $functions|$Web_On]]

Latest revision as of 18:18, 10 April 2013

Resume adding terminal output to response

$Web_On resumes the routing of terminal output to the client buffer. This buffer is sent to the client at the end of the connection. $Web_Off sends the output to the Model 204 audit trail.

$Web_On takes no arguments and returns a status code. It is a callable $function.

Syntax

%rc = $Web_On

Return codes

Code Meaning
0 Completed successfully.
-1 Not a web thread

Usage notes

  • Output lines that are returned to the client browser by a $Web_On statement are not wrapped or truncated if their length exceeds the Model 204 LOBUFF parameter setting. Since some browsers do not render very long lines correctly (although no explicit guideline for "very long" is available), testing for your site's expected conditions and client browsers is advised if your output may contain such long lines with no CRLFs (line-wrapping breaks).

See also