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
- In the upper-right corner of any page, click the Admin global link.
- In the Application Customization section, click Application Customization.
- In the Application Setup section, click Client Side Extensions.
- Click New.
- 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.
- 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.
|