Lasso Soft Inc. > Home

[ Server_Push ]

Method

[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]
Examples
  • Beginner

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.

Code

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

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft