4D v14.3

WA SET PAGE CONTENT

Home

 
4D v14.3
WA SET PAGE CONTENT

WA SET PAGE CONTENT 


 

WA SET PAGE CONTENT ( {* ;} object ; content ; baseURL ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
content  String in HTML source code
baseURL  String in URL for relative references (Mac OS)

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 specifies, 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 so it is not possible to use relative references on this platform.

Note: Under Windows, you cannot call this command unless a page has already been loaded previously into the Web area. If necessary, you can pass the "about:blank" URL in order to load a blank page.

Example  

Displays "Hello world!" and sets a "file:///" base URL (Mac OS only):

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

 
PROPERTIES 

Product: 4D
Theme: Web Area
Number: 1037

Windows specific

 
HISTORY 

Created: 4D v11 SQL Release 2

 
SEE ALSO 

WA Get page content

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)