<<

Contents

Search

>>

 

SHOW_DOCUMENT

 

 

Function

 

 

Syntax:

SHOW_DOCUMENT(<URL>,<Window>[,<Load from Server>]))

 

<URL>

= <STRING-EXPRESSION>

<Window>

= <STRING-EXPRESSION>

<Load from Server>

= <NUM-EXPRESSION>

 

 

Meaning:

Shows a document in an applet or a Html Program.

 

In a Html Program the parameter <Window> has no effect and <URL> has to be specified from the viewpoint of the webserver if <Load from Server> = 0

.

Example:

The Html Program is installed in /apache/webapps/Testprog. In the subdirectory /apache/webapps/Testprog/html the file Help.html shall be called. This does the following call:

H% = SHOW_DOCUMENT("html/Help.html")

 

SHOW_DOCUMENT returns the following results:

 

0: no error

-1: runtime error

-2: no applet or Html program

-3: invalid URL

 

Parameter:

URL

Address of the document

 

Window

Defines in which window the page is displayed:

 

Content of <Window>

Display of document

"_self"

in the Frame that contains the Applet or the Html program.

"_parent"

in the Parent-Frame of the Applet or the Html program.

"_top"

in the Top-Level-Frame of the Applet or the Html program.

"_blank"

in a new window.

"<Name>"

in the window of the name <Name>.

 

Load from Server

Specifies with Html programs whether the document has to be loaded from the Ebus-2T-Server or from the client. If <Load from Server> = 1, the document is loaded from the directory of the Ebus-2T-Server and is copied to the apache program directory (e.g. /apache/webapps/Testprog) from where it is started. In this case a path in URL has to be specified from the viewpoint of the Ebus-2T-Server.

 

If the paramater <Load from Server> is missing this is equivalent with <Load from Server> = 0.

 

Sample:

H% = SHOW_DOCUMENT(GET_CODEBASE$+"/index.html","_self")

IF H% <> 0

THEN ... Error ...

ENDIF

 

See also:

GET_CODEBASE$