As the use of jQuery becomes more and more popular, you may find yourself wanting to integrate jQuery scripting into your Titan CMS content managed web site. This article describes the basic configuration steps to get you started on the path of integrating jQuery.
Note: This article does not cover how to write jQuery code for manipulating HTML or adding animations. It is intended only to show how to integrate the required jQuery libraries into the framework of your site. If you need more information on writing jQuery code, utilize the various tutorials, as well as the API search, on the jQuery website (www.jquery.com).
Configure Source Library
The Titan Administration module gives you the flexibility to specify code snippets that can be placed in the HEAD section of your pages. In order to run the jQuery scripts you will write, first integrate the jQuery Source Library on your pages by making a configuration change in Titan Administration.
Login to your Titan CMS Workstation as a webmaster or administrative user.
Switch to the Titan Administration module.
Go to the configuration screen for the Page Layouts in your specific Globe under the Content Sites node.
Save the Page Layout changes and Refresh Site State.
An Alternative: Use the Google CDN
Google has created a Content Delivery Network (CDN) that hosts several popular open-source libraries. Rather than host the minified jQuery files on your server, why not off-load that job to Google?
Google's CDN is geographically distributed and designed to serve content fast.
Many users will already have downloaded jQuery from Google while visiting other web sites. As a result, it will be loaded from their browser's cache when they visit your site. That potentially makes your site load faster.
Write Your Custom jQuery Script
Download the jQuery Library.