Conduit API
Case Study
SendNotification
 
This function is used to pop up an HTML alert on the user’s desktop (desktop community alert).

This popup alert can contain a logo, a title chosen by the user, and a window that can contain HTML code given as a parameter in the constructor of this class. User can also define the length of time the alert message is displayed on the screen
 
SendNotificaiton(new HtmlNotification(strTitle, logoUrl, strHtml, alertLengthSeconds)).
 
Parameter Description Range Type
HtmlNotification An object filled with the below values Not null HtmlNotification object
strTitle The title in the alert window Not null string
logoUrl A URL for the logo to display in the alert (optional) A valid URL string or null string
strHtml HTML code of the page which is displayed in the alert’s window A proper HTML code for execution string
alertLengthSeconds The number of seconds that the alert is displayed on the screen > 0 integer
 
None.
 
This function can be used both with the HTML app and with the gadget window. *Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains one button. Clicking the button will display an HTML alert with the Conduit logo and a web page according to the HTML code which is passed through the parameter strHtml.