Wednesday, August 15, 2012

Link to JQuery Library

  1. Go to jquery.com and download the latest jQuery library to your desktop. You want to get the compressed production version, not the development version.
  2. Open SharePoint Designer (SPD) and connect to the root level of your site's site collection.
  3. In SPD, open the "Style Library" folder.
  4. Create a folder named "Scripts" inside of the Style Library.
  5. Drag the jQuery library JavaScript file from your desktop into the Scripts folder.
  6. In the Scripts folder, create a new JavaScript file and name it (e.g. "actions.js").
  7. Open your master page file in SPD.
  8. Within the <head> tag of the master page, add a script reference to the jQuery library just above the content place holder named "PlaceHolderAdditonalPageHead" (and above your custom CSS references, if applicable) as follows:
    <script src="/Style%20Library/Scripts/{jquery library file}.js" type="text/javascript"></script>
  9. Immediately after the jQuery library reference add a script reference to your custom scripts file as follows:
    <script src="/Style%20Library/Scripts/actions.js" type="text/javascript"></script>

No comments:

Post a Comment