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
- <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
- <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