2.28 :load()

2.28.1 :load() (document)

This method loads an XML Document from a URL or file. The stored DOM tree is deleted and a new tree is built up. All existing XML Cursors become invalid.

The attribute .mapped has the value false for invalid XML Cursors.

Definition

boolean :load
(
  string URL input
)

Parameters

string URL input
The location of the XML Document to be loaded. May be a URL or a file system path.

Return value

The method returns true if the XML Document could be loaded, false otherwise.

In case of an error, the DOM tree either remains unchanged or is deleted completely; there will never be a partial transformation.

2.28.2 :load() (dmw_webview)

In a dwm_webview, the :start method initiates the loading of a web page by specifying the address in URL format, regardless of whether it has already loaded. Since this is an asynchronous action, there is no return value. This method also sets the .url and .html attributes accordingly. The start event is generated first during loading, along with the initialization of the loading progress percentage (the .progress attribute is set to 0). The completion or abort of the loading process is indicated by a finish event. In this case, the loading progress should be set to 100%. A loading error or abort using :stop() results in an error string being set in the .errormsg attribute.

The loading process can be aborted by calling the :stop() method.

This method can only be called for a visible dmw_webview object; otherwise, it will generate a call error.

void :load
(
  void URL input
)

Parameters

void URL input
The location where the file is loaded.

Return value

None.

See also

:reload(), .html, .url

Objects with this method

document, dmw_webview