Built-in front calls / Webcomponent front calls |
Returns the title of the HTML doc rendered by a web component.
ui.Interface.frontCall("webcomponent", "getTitle", [aui-name], [result] )
This front call can be used to get the title of the HTML document that is rendered by the web component identified by the aui-name. For more details refer to http://www.w3schools.com/tags/tag_title.asp.
A typical usage of this front call is when implementing a web component based on the O-Auth mechanism to identify the current user: For example, with the Google accounts authentication service, after the login and password were validated by Google, the authentication token will be returned in the title of the HTML document. This token is typically used by the application to identify the user in distant API calls.