1.8

Table Of Contents
information about this plugin, see "Using the COTG plugin: cotg-2.0.0.js" on page442.
l
Capture OnTheGo and Jumbotron template wizards automatically add the Foundation
files v. 5.5.1 to the resources of the template. For more information about the use of
Foundation in the Designer, see "Using Foundation" on page420.
Tip
It is possible to open and edit any JavaScript file in the Designer: select File > Open, select All
files (*.*) as the file type and then select a JavaScript file.
Adding JavaScript files to the resources
To add a JavaScript file to the resources:
l
Right-click the Javascript folder on the Resources pane, and click New Javascript.
Double-click it to open and edit it.
l Alternatively, drag and drop the JavaScript file from the Windows Explorer to the
JavaScript folder on the Resources pane.
Next, include it in a Web page; see below.
Adding a remote JavaScript file
A Remote Javascript Resource is a file that is not located within your template but is hosted on
an external web server (generally called a CDN). When generating Web output, these files are
referenced in the web page's header and are served by the remote server, not by the Connect
Server module.
There are a few advantages to using remote resources:
l These resources are not served by your server, saving on space, bandwidth and
processing.
l Using a popular CDN takes advantage of caching - a client having visited another
website using that same CDN will have the file in cache and not re-download it, making
for faster load times for the client.
To add a remote javascript:
Page 404