Skip to content

Instantly share code, notes, and snippets.

View PaulSpoerry's full-sized avatar
:octocat:
Work work work work work...

Paul Spoerry PaulSpoerry

:octocat:
Work work work work work...
View GitHub Profile

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 July 5, 2016 14:33
List all subsites within a SharePoint container by iterating over SPServices.SPGetCurrentSite()
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');