BrightSign Object Reference Manual (FW 5.1) User Manual
Page 75

67
•
load-finished: The WebKit has completed loading a page.
•
load-error: The WebKit has failed to load a page. The uri key identifies the failing resource, and the message
key provides some explanatory text.
Filename Mapping
HTML content that has been deployed via BrightAuthor will typically reside in the pool and have encrypted SHA1-based
filenames. A mapping mechanism is required to allow any relative URIs contained in the HTML content to continue
working and to locate the appropriate resources in their respective pool locations.
An
roHtmlWidget.MapFilesFromAssetPool() method can be used to bind part of the resource URI space onto
pool locations, as long as it is used with the following: an roAssetPool object containing some assets, an
roAssetCollection object identifying them, and two semi-arbitrary strings (URI_PREFIX and POOL_PREFIX).
Any URI in the form
"file:/[URI_PREFIX][RESOURCE_ID]" will be rewritten into the form "[POOL_PREFIX]
[RESOURCE_ID]". It will then be located in the pool as if that name had been passed to the
roAssetPoolFiles.GetPoolFilePath() method. This binding occurs for every instance of roHtmlWidget, so different
mappings can be used for different bundles of content.