Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tasks : Calling External JavaScript Functions

Calling External JavaScript Functions
Often, a single JavaScript function is useful for many different forms. Typical utility functions that are candidates for reuse are those for validating common types of input, such as phone numbers and zip codes, or for making calls to external services, for instance, to dynamically obtain lists of data. It is not necessary to rewrite or copy these functions from one form to another.
To facilitate reuse, common JavaScript can be placed in one or more JavaScript files external to the form. These JavaScript files will be deployed to the WebDAV server with your form files, and can be used by multiple forms in the browser client.
To use an external JavaScript file in a form, you need to add it to the form resources. Once added, the JavaScript files will get deployed automatically when the form is deployed, and loaded at runtime before the form is loaded.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved