pui.normalizeURL( url )



This function returns a normalized URL based on the pui.serverURL configuration setting.  It is typically used with URL paths to image resources that are packaged with your Apache Cordova application.  If pui.serverURL is defined, it is prepended to the url parameter, so that the image can be accessed on the server; otherwise, the original url paramater is returned.

Parameters:

  • url - the url address of an image file or some other resource

Example:

The following can be used on the "image source" property.

js: pui.normalizeURL("/profoundui/proddata/images/icons/view.png")