Conduit API
Case Study
Web Page API -> AddLinkButton
 
This function is used to add to a customized button the Toolbar which is used in order to navigate to a web page.
 
AddLinkButton(buttonLabel,
buttonIcon,
buttonTooltip,
linkTargetUrl,
linkTarget,
optionsDisplayText,
optionsDisplayIcon,
uniqueComponentID)
 
Parameter Description Range Type
buttonLabel The text to display on the button not null or empty string
buttonIcon The URL of the icon which is displayed on the button not null or empty string
buttonTooltip The tooltip text that appears when the mouse cursor is placed over the button not null or empty string
linkTargetUrl The URL of the web page which is displayed when clicking the linkbutton not null or empty string
linkTarget The target for the navigation:
1. _self- Displays the linked page in the main browser, replacing the current page
2. _new- Displays the linked page in a new browser window
not null or empty string
optionsDisplayText The text to display in the toolbar's options dialog. Optional. When the parameter is null, the button label text is displayed in the toolbar's options dialog string
optionsDisplayIcon The icon to display in the toolbar's options dialog Optional. When the parameter is null, the button icon is displayed in the toolbar's options dialog string
uniqueComponentID The unique ID of the link button. If the parameter is left empty, a unique ID is automatically created not null or empty string
 
An object that contains the following fields:
Field Name Description Type
returnValue Indicates whether the operation was successful.
True - The function adds a customized button to the toolbar that links to a web page
False - The button is not added to the toolbar. Check the value of the errorCode to determine the specific reason for the function failure
boolean
errorCode
Specific error code. See Error Code Table for additional information.
int
 
All function must be called with at least one of the following parameters (which contain a value): "ButtonLabel" and/or "ButtonIcon". If both parameters are left empty, the button will not appear on the Toolbar.
*Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains a button that when clicked upon will insert a "Link Button" item to the Conduit demo toolbar.