Join
Log In
> -->>
Log Out
Support
Help
Conduit
Mobile
Wibiya
How It Works
Benefits
Features
Showcase
Contact Us
Conduit API
Introduction
HTML App
Using Advanced APIs
Introduction
+ Methods
EBOpenPopHtml
Introduction
+ Methods
AddAlert
AddApplicationMenuItem
AddCommandMenuItem
AddGadget
AddGadgetMenuItem
AddLinkButton
AddLinkMenuItem
AddRadioStation
AddRSS
GetAllToolbarsInfo
GetInfo
GetSupportedUserAddMenu
IsSupportedFunction
IsVisible
Refresh
Developing the game
+ Methods
ChangeHeight
ChangeSize
CloseFloatingWindow
GetCurrentHeight
Gadget
Introduction
HTML Apps Height
XML Specifications
Code Usage
Create HTML component
Error Code Table
Glossary
Code Example
+ Methods
CrossDomainHttpRequest
GetInfo
SendNotification
RegisterForMessaging
SendMessage
JSInjection
ChangeWidth
DeleteGlobalKey
DeleteKey
GetCurrentWidth
GetMainFrameTitle
GetMainFrameUrl
GetSearchTerm
GetVersion
OpenGadget
RefreshComponentById
RefreshToolbar
RetrieveGlobalKey
RetrieveKey
SelfNavigate
StoreGlobalKey
StoreKey
Code Usage
+ Events
EBKeyChanged
EBTabRestored
EBDocumentComplete
EBGlobalKeyChanged
EBNavigateComplete
EBSearchTermChanged
Code Usage
Flash plugin behavior
Embeding Flash
+ ASP.Net
+ ExternalMenu
+ Constructors
ExternalMenuCtor
+ EM_Button
EM_Button
+ Properties
ButtonTooltip
DefaultButtonText
DefaultIconUrl
+ EM_Menu
+ Constructors
EM_MenuCtor
EM_Menu
+ EM_MenuItem
+ Constructors
EM_MenuItemCtor
+ EM_Data
EM_Data
+ EM_Link
+ Constructors
EM_LinkCtor
EM_Link
+ Enums
LinkType
+ Properties
Target
Url
+ EM_PopHtml
+ Constructors
EM_PopHtmlCtor
EM_PopHtml
+ Properties
Height
Url
Width
+ Enums
DataType
+ Properties
Link
PopHtml
Type
EM_MenuItem
+ Properties
Caption
Data
IconUrl
+ EM_Separator
+ Constructors
EM_SeparatorCtor
EM_Separator
+ Properties
Caption
Hint
IconUrl
MenuItems
+ Enums
MenuType
ExternalMenu
+ Methods
GetXml
+ Properties
Button
ExternalInterval
Menu
Type
Live Demo Usage
Targets
Detecting Flash version
Conduit API
Code Usage
Security Settings
Show Hide mechanism
Where to go from here
Facebook
Toolbar
Case Study
Introduction
Introduction
Online users
Add user Login
Add Quick Search
Add user Messages
Web Page API -> AddLinkButton
- Description
This function is used to add to a customized button the Toolbar which is used in order to navigate to a web page.
- Syntax
AddLinkButton(buttonLabel,
buttonIcon,
buttonTooltip,
linkTargetUrl,
linkTarget,
optionsDisplayText,
optionsDisplayIcon,
uniqueComponentID)
- Parameters
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
- Return Value
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
- Remarks
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.
- Code Example
This example contains a button that when clicked upon will insert a "Link Button" item to the
Conduit demo toolbar
.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Conduit Toolbar API - AddLinkButton</title> </head> <body> <div><input type="button" value="Add Link Button" onclick="AddLinkButtonToToolbar()" /></div> <br /> <div id="result"></div> </body> </html>
- Code Usage
See code usage
See live demo usage
Live example