apress pro sharepoint with jquery

268 529 0
apress pro sharepoint with jquery

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... filesystem and see whether the folder and JS file exist: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ProSharePointWithjQuery \jQuery The other method is to navigate to a SharePoint site and append the _layouts path to see whether you can view the JS file: http:/ /sharepoint/ _layouts/ProSharePointWithjQuery /jQuery/ jquery-1.6.js This completes the deployment to the Layouts... INTEGRATING JQUERY INTO SHAREPOINT (http://wspbuilder.codeplex.com/) can improve this development workflow in Visual Studio 2008 Deployment and attaching the debugger are also manual processes 1 Open Visual Studio 2010, and choose File ➤ New Project 2 Select SharePoint ➤ 2010 ➤ Empty SharePoint Project Name the project jQueryDeploymentProject, and click OK as shown in Figure 2-2 Figure 2-2 Creating an empty SharePoint. .. SHAREPOINT • http:/ /sharepoint/ _layouts /jquery/ jquery-1.6.js • http:/ /sharepoint/ subsite/_layouts /jquery/ jquery-1.6.js If you’re familiar with SharePoint, you should be familiar with the SharePointRoot folder, which is the core SharePoint installation directory and which contains a large proportion of the files SharePoint needs to run In the SharePoint root, you’ll find the folders that contain site definitions,... a brief history of SharePoint and its key features for our purposes in this book We also introduced jQuery, talked about downloading and hosting jQuery yourself, and explained how to access jQuery via a CDN In the next chapter, you’ll learn more detail on how to integrate jQuery into SharePoint 6 CHAPTER 2 Integrating jQuery into SharePoint This chapter covers how SharePoint and jQuery can meet and... http://ajax.googleapis.com/ajax/libs /jquery/ 1.6.2 /jquery. min.js • Microsoft CDN: http://ajax.aspnetcdn.com/ajax /jQuery/ jquery-1.6.2.min.js • jQuery CDN: http://code .jquery. com /jquery- 1.6.2.min.js For the two different methods of getting access to the jQuery library there are some pros and cons to consider If your site is Internet-facing, it is a good way to off-load the task of delivering the jQuery library to your... it programmatically To get things started, open Visual Studio 2010 and use the Empty SharePoint Project template to create a project named jQueryDynamicWebPart Select “Deploy as a farm solution” and click Finish Add a web part to the project by right-clicking the project and choosing Add ➤ New Item… Name the web part jQueryDynamic, as shown in Figure 2-16 25 CHAPTER 2 ■ INTEGRATING JQUERY INTO SHAREPOINT. .. AdditionalPageHead Delegate Control Provided that the master page you are using has the AdditionalPageHead control on, you can use an ASCX file to reference the jQuery library Creating a Delegate Control Using Visual Studio Follow these steps: 1 Open Visual Studio 2010, and choose File ➤ New Project Select SharePoint ➤ 2010 ➤ Empty SharePoint Project Name the project jQueryDelegateControlProject, and click OK 2... type="text/javascript" src="http:/ /sharepoint/ _layouts /jquery/ jquery-1.6.js"> But if an artifact is just using the jQuery JavaScript code, and not referencing the script, this won’t work because the library will not have been loaded in the SharePoint page This is where the “Making jQuery Available to the SharePoint Page” section is relevant, because you can choose how and when to load the jQuery library When... release, it can be updated without affecting other areas 13 CHAPTER 2 ■ INTEGRATING JQUERY INTO SHAREPOINT Creating a Solution to Deploy to a Restricted SharePoint Library Follow these steps: 1 Open Visual Studio 2010, and choose File ➤ New Project 2 Select SharePoint ➤ 2010 ➤ Module Name the project jQueryLibraryDeploymentProject, and click OK 3 In the next dialog, enter a valid URL where you want to... Action Using custom actions is a great way to be able to load the jQuery library if you are using it in a sandboxed environment Creating a Custom Action Using Visual Studio Follow these steps: 1 Open Visual Studio 2010, and choose File ➤ New Project Select SharePoint ➤ 2010 ➤ Empty SharePoint Project Name the project jQueryCustomActionProject, and click OK 2 In the next dialog, enter a valid URL where . ■ INTEGRATING JQUERY INTO SHAREPOINT 9 • http:/ /sharepoint/ _layouts /jquery/ jquery-1.6.js • http:/ /sharepoint/ subsite/_layouts /jquery/ jquery-1.6.js If you’re familiar with SharePoint, you. New Project. 2. Select SharePoint ➤ 2010 ➤ Empty SharePoint Project. Name the project jQueryDeploymentProject, and click OK as shown in Figure 2-2. Figure 2-2. Creating an empty SharePoint. file: http:/ /sharepoint/ _layouts/ProSharePointWithjQuery /jQuery/ jquery-1.6.js This completes the deployment to the Layouts folder. If you need to deploy a new version of the jQuery library,

Ngày đăng: 29/04/2014, 15:25

Từ khóa liên quan

Mục lục

  • Cover

    • Contents at a Glance

    • Contents

    • About the Author

    • About the Technical Reviewer

    • Acknowledgments

    • Introduction

      • Who This Book Is For

      • How This Book Is Structured

      • Coding Conventions

      • Prerequisites

      • Downloading the Code

      • Contacting the Author

      • Introduction

        • A Bit About SharePoint

          • Web Parts

          • Office 365

          • Application Pages

          • Framework

          • SharePoint Lists

          • Web Services

          • Self-Service

          • jQuery: The “Write Less, Do More JavaScript Library”

            • Where Do You Get jQuery From?

            • Summary

Tài liệu cùng người dùng

Tài liệu liên quan