Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Code Samples >

Getting Started with the Code Samples


To use the sample code in this appendix:

  1. Log in to Oracle CRM On Demand with an administrator role that includes the privilege: Upload Client Side Extensions and Manage Custom HTML Head Tag.
  2. Navigate to Admin, Application Customization, Custom HTML Head Tag.
  3. In the Custom HTML Head Tags Detail page, add the sample code.

For more information about getting started, see Getting Started with the JavaScript API and in particular see Privileges Required and Managing HTML Head Additions.

For each of the code samples, the entry point for running the custom code is either a call to the onReady() method, which is associated with the ready event, or the onLoad() method, which is associated with the onload event. The ready event occurs after the HTML document has been loaded, while the onload event occurs later, when all content (for example, images) has also been loaded.

NOTE:  When including JavaScript code within HTML, remember to include the code within <script> tags.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.