LassoScript Utility
Basics Browse Detail

[Server_Push]

Tag Link [Server_Push] Category Output
Type Process Source Available No
Support Preferred Version 3.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Server_Push] instructs Lasso to send as much of the current format file to the client as possible. This results in the page being loaded in stages within the visitor's Web browser.

Note: The [Server_Push] tag is not supported by all Web servers. Some Web servers buffer all output from Lasso and stream it to the Web client themselves.

The [Server_Push] tag should only be used outside of HTML tables and frames. Some Web browsers have difficulty rendering a Web page if all tables and frames are not closed.

Lasso buffers the output of container tags such as [Records]  [/Records] and custom container tags. The [Sever_Push] tag can only be used outside of these container tags. The [Server_Push] tag can be used within [Loop]  [/Loop], [While]  [/While], [Iterate]  [/Iterate], [If]  [Else]  [/If], [Protect]  [/Protect], [Handle]  [/Handle], [Select]  [Case]  [/Select], and [Encode_Set]  [/Encode_Set] tags.

The [Server_Push] tag should be used lower on a page than other tags which manipulate the header of a page such as [Header] ... [/Header], [Content_Type], [Redirect_URL], [Session_Start], and [Cookie_Set].

Syntax

[Server_Push]

Parameters

No Parameters Required.

Examples

To show search results progressively:

Use the [Server_Push] tag before the [Inline] tag to show the header of the page before the search is performed.

<h2>Header<h2>
[Server_Push]
[Inline: -FindAll
    -Database='Contacts', 
    -Table='People', 
    -MaxRecords='All']
  [Records]
    <br>[Field: 'First_Name'] [Field: 'Last_Name']
  [/Records]
[/Inline]

<br>John Doe
<br>Jane Doe
<br>John Surname
<br>Jack Lastname
<br>Mary Peoples