Opening the viewer of WWW pages (/#glob/webbrowser)
The viewer of general WWW pages is opened by by the Pm.CreateView
method. In the parameter sViewPath
the global path "/#glob/webbrowser"
|url||(String) The URL address of the web page defined in full syntax including the protocol (http://, https:// or file://).|
The viewer parameters are in the form of the PmMap
object that is filled from value of the sView
parameter (of the KeyVal
type) in the Pm.CreateView
By filling from the KeyVal value all the parameters are initially stored as string. The content of the PmMap object can be then modified as needed - the items can be modified, added and deleted.
The PmMap object can also contain other embedded PmMap objects (Submap). The PmMap.mapSetSubmapAt method can be used in order to create a new PmMap or make one accessible.
Two ways of opening an url address in an independent window
var oCreator = Pm.CreateView(pMe.PmPanel, "/#glob/webbrowser", "url:https://www.promotic.eu", "target:_blank;");
or short syntax
Pm.CreateView(pMe.PmPanel, "/#glob/webbrowser", "url:https://www.promotic.eu", "target:_blank;").Open();