Skip to content

Instantly share code, notes, and snippets.

@javierguerrero
Created March 11, 2015 19:37
Show Gist options
  • Save javierguerrero/5a1408773967959d25cf to your computer and use it in GitHub Desktop.
Save javierguerrero/5a1408773967959d25cf to your computer and use it in GitHub Desktop.
SPServices Hello World!
<script type="text/javascript">
alert ("js on.");
$(document).ready(function() {
alert ("jQuery on.");
var thisSite = $().SPServices.SPGetCurrentSite();
alert("Hello World! Your site is : " + thisSite);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment