Skip to content

Instantly share code, notes, and snippets.

Avatar

Paul Spoerry PaulSpoerry

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am paulspoerry on github.
  • I am paulspoerry (https://keybase.io/paulspoerry) on keybase.
  • I have a public key ASB5Bd0QRyc6dU3FQvsjHRRiyk71K1b6Xyr2diY986imCgo

To claim this, I am signing this object:

@PaulSpoerry
PaulSpoerry / SPServices_SubsiteIterator.js
Created Jul 5, 2016
List all subsites within a SharePoint container by iterating over SPServices.SPGetCurrentSite()
View SPServices_SubsiteIterator.js
jQuery.noConflict();
(function( $ ) {
//inject SPServices
var sps = document.createElement('script');
sps.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices-2014.02.min.js";
document.getElementsByTagName('head')[0].appendChild(sps);
// Code in here
var tree = $('#treeviewList');
You can’t perform that action at this time.