WA SET PAGE CONTENT

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA SET PAGE CONTENT ({*; }object; content; baseURL)

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
contentStringHTML source code
baseURLStringURL for relative references (Mac OS)

Description

The WA SET PAGE CONTENT command replaces the page displayed in the Web area designated by the * and object parameters by the HTML code passed in the content parameter.

The baseURL parameter can be used to specify, under Mac OS, a base URL that will be added in front of any relative links found in the page.

Under Windows, this parameter has no effect and the base URL is not specified. It is therefore not possible to use relative references on this platform.

Note: Under Windows, it is imperative for a page to have already been loaded into the Web area before this command can be called. If necessary, you can pass the "about:blank" URL in order to load a blank page

Example

Display of the "Hello world!" phrase and definition of a "file:///" base URL (Mac OS only):

   WA SET PAGE CONTENT(MyWArea;"<html><body><h1>Hello World!</h1></body></html>";"file:///")

See Also

WA Get page content.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next