Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Canvas provides the developer the flexibility to register the application's Header and Footer. Since the files containing these are to be loaded even before the FW files, the developer is expected to register these files under the “CT_READY” tag name in the Download Manager*. For details on Download Manager and CT_READY, refer to Download Manager.

Syntax to register the header and footer is as following.follows:

Code Block
languagexml
CLHFR.registerContent("<LIB_FRAMEWORK>","header", "<HTML_HEADER_CONTENT>");

CLHFR.registerContent("<LIB_FRAMEWORK>","footer","<HTML_FOOTER_CONTENT>");

Assuming the file name is iportal.headerandfooter.js, the code to register the header and footer is as follows:

Code Block
languagexml
CLHFR.registerContent("jqui","header","<p>Welcome to onlineOnline Banking through iportal</p>");

CLHFR.registerContent("jqui","footer","
<table>
	<tr>
		<td>
			©copyright<td>© Copyright 2014</td><td>Sitetd>
        <td>Site best viewed at 1024 x 768 resolution 
		<resolution</td>
	</tr>
</table>");


Warning

If you do not register the header or footer for your application, Canvas will display the default message “Header is not configured” or “Footer is not configured” in the corresponding section.

...