Contact | Privacy | Datenschutzerklärung | Impressum

Std Library

The Std Library contains basic functions, that will be used by nearly every page. You need to insert

< include name="std.hei" />

into the beginning of your page to use the following functions.

< stdinit > ... </stdinit>

The heitml code inside <stdinit> is executed at initialization time before any other code on the page is executed. This is useful to perform initializations before any other code is executed.

It is also useful to call the heitml header manipulation functions inside <stdinit>. Note that it is required to call up these functions at initialization time.

The code inside <stdinit> has an own set of local variables. All output produced by this code will be ignored. Usually session mode is not yet initialized when the code is executed, so se. and page. variables cannot be accessed.

Note: The code inside stdinit is always executed once at initialization time, regardless of where the stdinit is used (even if used inside an if or while!)

< stdloc name />

Defines a location with a given name. Using the <stdins> environment it is possible to insert code at this location.

The <stdloc> tag will execute the code assigned to the location by previous calls of <stdins>. In case of multiple <stdins> calls the new code is appended.

Page layouts usually use <stdloc name="bgbody"> and <stdloc name="endbody"> at the begin and end of the page body, <stdloc name="head"> in the HTML page header, and <stdloc name="onload"> in a JavaScript page onload routine, so that any included libraries can use <stdins> to insert code into any of these places.

< stdins name > ... </stdins>

The code inside the <stdins> is not executed but suspended until a <stdloc> with the same name is executed. The code inside <stdins> has an own set of local variables (this will probably change in future versions) but the value of this stays the same.

sa, sarea, sessionUrl, sessionHidden, sessionActive

are defined in the Std Library, although these tags belong to the session mode and are documented there. These tags can be used on pages that do not use session mode themselves but want to pass on the session information to other pages using session mode.

<let uniquename= stdmakeuniq (name) >

is a function that creates a page wide unique identifier based on name. Actually a counter is incremented and its value is appended to the name. In HTML and JavaScript often names are used for identification. A component or user-defined tag can use this function to generate unique names that work, even if the tag is used several times on the same page.

<let uri= stdabsuri (abspath=SrvLocalUrl) >

is a function that makes an absolute URI out of an absolute path by prepending the schema (http or https), host name, and the server port, if the server port is not 80 or 443. The absolute path defaults to SrvLocalUrl.

<let ishttps= stdishttps () >

is a function that tells you whether heitml is serving a https request.


This page was dynamically generated by the web application development tool RADpage of H.E.I. Try the AJAX Article (in German) on www.h-e-i.de.
© 1996-2024 H.E.I. All Rights Reserved.



Homepage
Intro/Features
Component Guide
Programming
  Language Guide
  Language Ref.
  Component Ref.
  Class Library
    Library Files
    Std Library
    Ses Library
    Component Library
    Layout Library
    Outline Library
    HTML Extensions
    Date/Time Library
    Math Library
  User Components
  Tutorial
  New Features
  heitml 1
User Guide
Services
Privacy
Datenschutz
 
Contact / Impressum