jquery is introduced in the master page of SharePoint 2013

Source: Internet
Author: User

jquery is introduced in the master page of SharePoint 2013Category: JavaScript SharePoint2013-02-03 22:01 1978 people read comments (0) favorite reports Design Managerjqueryjqueryjqueryjqueryjquerymaster Pagesharepoint 2013 Introduction

This article describes how to introduce jquery in the master page of SharePoint 2013.

There are two situations in which jquery is introduced in the master page of SharePoint 2013:

A. The Design manager feature for SharePoint 2013 is activated (requires site collection feature) SharePoint Server Publishing Infrastructure and website features (site feature) SharePoint Server Publishing)

B. The design Manager feature is not activated for SharePoint 2013

The difference between the two is that the former master page is converted from HTML, each master page has one by one of the corresponding HTML file (this HTML file can be customized by the SharePoint site administrator), and the latter is directly the master page, No conversion is required. Therefore, when you introduce jquery in the first page of the former (a), you can only modify the HTML file for the Mater page pair, and you cannot modify the Mater page directly. The latter (b) is the direct modification of the Mater page to introduce jquery.

The following is a brief description of the steps to introduce jquery in a, b two scenario:

Situation A:

1. Use SharePoint 2013 to open the SharePoint 2013 site for which you want to modify the master page

2. Click All files, _catalogs, masterpage

3. Select the HTML file for the master page you want to modify, check out (check out), and double-click to open the edit

4. Search for

[HTML]View Plaincopy
    1. <script type="Text/javascript" src= "http://ajax.aspnetcdn.com/ajax/jQuery/ Jquery-1.9.0.min.js "></script>

5. Check in the HTML file, and if versioning or approval is enabled, you will need to publish the major version and approve it.

Case B:

1. Use SharePoint 2013 to open the SharePoint 2013 site for which you want to modify the master page

2. Click All files, _catalogs, masterpage

3. Select the master page checkout (check out) you want to modify, and double-click to open the edit

4. Search for

[HTML]View Plaincopy
    1. <script type="Text/javascript" src= "http://ajax.aspnetcdn.com/ajax/jQuery/ Jquery-1.9.0.min.js "></script>

5. Check in the HTML file, and if versioning or approval is enabled, you will need to publish the major version and approve it.

jquery is introduced in the master page of SharePoint 2013

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.