1.4

Note
In Workflow, when using the Create Web Contents task, check the Embed All
Resources option to download and embed all remote resources.
Popular hosted frameworks on CDN networks are:
l jQuery on MaxCDN
l Zurb Foundation on CDNJS
l Bootstrap on MaxCDN
l Multiple frameworks on Google Developers
Including a JavaScript file in a Web context
To link a JavaScript file to a certain web page template:
1.
On the Resources pane, expand the Contexts folder, and then expand the Web context.
2.
Right-click a Web page and click Includes.
3.
Check the JavaScript files that should be included with the Web page. Using the Up and
Down buttons you can change the order of the files, too.
4.
Click OK.
Using JavaScript in other contexts
Email clients do not support JavaScript. Therefore, Email contexts cannot include JavaScript
resources.
When a JavaScript file is included in a Print section, the Designer itself acts as the browser.
When Print output is generated, it runs the JavaScript after the main page flow contents and the
pagination are generated. So, it is possible to change the Print output by a JavaScript; you
could, for example, add a barcode that includes the pagenumber to each document. A warning
is appropriate, however: changing the DOM may change the page flow and doing so at this
point may result in bad output and/or serious errors or a crash of the software.
Designer User Interface
The Designer's user interface gives you several options to work with.
Page 452