Oracle CRM On Demand JavaScript API Developer's Guide > Getting Started with the JavaScript API >

Uploading JavaScript Libraries


You can upload JavaScript library files as client-side extensions in Oracle CRM On Demand. These files can include custom functions and global variables, as well as other JavaScript libraries that you require.

To upload a JavaScript library

  1. In the upper-right corner of any page, click the Admin global link.
  2. In the Application Customization section, click Application Customization.
  3. In the Application Setup section, click Client Side Extensions.
  4. Click New.
  5. Enter the following details:
    • File. Click the paperclip icon to find the file that you want to upload.
    • MIME Type. (Optional) This field indicates the Internet media type. If you provide a value, then enter the following:

    text\javascript

    When you refer to the client side extension file from a custom HTML head addition, you use a <script> element as in the following example:

    <script src="url to the client side extension" type="text/javascript"></script>

    • Name. A name for the client side extension. This field is required.
    • URL Name. A meaningful name used in the URL that points to the client side extension. It is recommended that you keep this field as short as possible. This field changes only when a user edits it. Therefore, if you replace the uploaded file, or if you change the client-side extension name, then the URL Name field value is unchanged. As a result, you can update, maintain and deploy multiple versions of the client-side extension without having to reconfigure the HTML head additions. This field is required.
  6. Click Save.

    After you click save, the Relative URL and Full URL fields are generated for the client-side extension and displayed in the Client Side Extension list.

For more information about managing client-side extensions, see Oracle CRM On Demand Online Help.

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