Description
This functions allows you to Navigate to a Web Resource, opening either inline or a dialog. It uses the Microsoft API NavigateTo Web Resource to provide the capability.
Signature
NavigateToWebresource( 'name', 'data', 'target', 'position', 'width-value', 'width-unit', 'height-value', 'height-unit' )
Example 1
The following opens the web resource north52_html_bpa in a dialog (target=2), in the center (position=1), with a width of 30% and height 50%:
NavigateToWebresource( 'north52_html_bpa.html', '', 2, 1, 30, '%', 50, '%' )
Example 2
The following opens the web resource north52_supercool in a dialog (target=2), in the side (position=2), with a width of 30% and height 50%. It also passes in the data parameter the text 'contact'. This can be picked up in custom logic within the webresource by accesses the querystring parameter 'data' to carry out specific logic.
NavigateToWebresource( 'north52_supercool.html', 'contact', 2, 2, 30, '%', 50, '%' )
Parameters
Name | Required | Type | Description |
---|---|---|---|
name | Yes | String | Name of the web resource |
data | No | String | The data to pass to the web resource |
target | No | Integer | 1 to open the web resource inline (default) 2 to open the web resource in a dialog |
position* | No | Integer | 1 to open the dialog in center (default) 2 to open the dialog on the side |
width-value* | No | Integer | |
width-unit* | No | String | px to use width-value as pixel size % to use width-value as percentage |
height-value* | No | Integer | The numerical value that determines the height of the dialog. Works in conjunction with the height-unit |
height-unit* | No | String | px to use width-value as pixel size % to use width-value as percentage |
*These parameters are only valid if target = 2 |
Microsoft APIs
This North52 function relates to the following Microsoft APIs: