Integrate a JavaScript File (as sample jQuery) into a Typo3 Website

Currently i need some JavaScript-Actions in my Typo3-Website, therefore i will integrate jQuery.
 
First of all, download the current version of jQuery and upload the .js-File to your Webspace, as sample in:

/fileadmin/template/javascript/jquery/

 
After that, navigate into the Typo3 Backend to the TypoScript Main-Template and add the following TypoScript to the Setup:

# Assign the JavaScripts
page.includeJS { 
  file1 = fileadmin/templates/javavcript/jquery/jquery-1.6.2.min.js 
}

 

 
Now your JavaScript-Library is ready to use 🙂

  1. No comments yet.

  1. No trackbacks yet.