Useful JavaScript to know when working with SharePoint Display Templates

Useful JavaScript to know when working with SharePoint Display Templates

With the display templates feature in SharePoint 2013, you can highly customize the look of search using HTML, JavaScript, and jQuery. It turns out there are a lot of helper functions to make your life easier in the out-of-the-box scripts.

Rendering JSON from an XSLTListViewWebPart

Rendering JSON from an XSLTListViewWebPart

Outputting JSON using an XSLTListViewWebPart and some custom XSL.

JSLink and Display Templates

JSLink and Display Templates Part 1 – Overview, URL Tokens and Applying JSLink to objects

This is the first in a 4 part series about JSLink where I intend to go through all the ins and outs of using Display Templates to customise list rendering.

Fire Workflows with Initiation Parameters using #SPServices

Fire Workflows with Initiation Parameters using #SPServices

This post takes a look at how to do just that and provides some code that will allow easy use of Workflows in Javascript.

How to copy files between sites using JavaScript REST in Office365 / SharePoint 2013

How to copy files between sites using JavaScript REST in Office365 / SharePoint 2013

Copy a file from a document library in one site to a document library in a different site using JavaScript and REST. The code samples have URL’s using the App web proxy, but it’s easily modifiable for non-app work as well.

JS Link code for KPIs in SharePoint 2013

JS Link code for KPIs in SharePoint 2013

SharePoint 2013 has a powerful new feature known alternately as JSLink (when working in SharePoint)and Client-Side Rendering, or CSR (in the Microsoft literature). Either way, the point is the same… this code runs on the client side, meaning after the page loads. […] Client-Side Rendering is pretty straightforward, but takes a little understanding of how the JSLink functionality performs in order to get things just right.

Using the updated SharePoint 2013 REST API versus the SharePoint 2010 mode

Using the updated SharePoint 2013 REST API versus the SharePoint 2010 model

This article will cover the changes between how we used REST in 2010 and what we need to ‚update‘ for using the streamlined interface in SharePoint 2013.

Managing SharePoint 2013 App Context 

Managing SharePoint 2013 App Context 

When creating SharePoint 2013 apps, you often need contextual information about the app and the user. This contextual information includes things like the URL of the host web or the account claim of the current user. […] To solve the problem, I created 2 libraries for managing context: one for SharePoint-Hosted Apps (wingtip.context.js) and one for Cloud-Hosted Apps (wingtip.remotecontext.js).

Intro to Client Side Solutions in SharePoint 2013 (jQuery, Knockout.js and REST)

Intro to Client Side Solutions in SharePoint 2013 (jQuery, Knockout.js and REST)

In SharePoint 2013, client side solutions and JavaScript development are now a priority […] The inclusion of extensive REST services removes the server side middle man and provides a simple way for developers to access SharePoint data directly from client code. This allows for quick iterative development and enables developers to use fully featured libraries such as jQuery and Knockout to create powerful solutions for end users.

Get selected list / document items from SharePoint Ribbon

Get selected list / document items from SharePoint Ribbon

In this post we are going to see how we can get selected list / document items from a customized ribbon control using javascript.