code
17 07 2013
There is a relatively unknown yet very powerful and extremely cool API sitting in SharePoint Server since 2010. In my 4 years of using SharePoint 2010, even I only came across this just a couple of weeks ago – Excel Services has a REST API endpoint and a JavaScript API! What’s this mean? It means […]
11 10 2011
Here’s a little snippet of code to grab the MySite host of the current environment using jQuery to pick it out from the user’s Welcome Menu.
|
var str = $('#ID_MySiteMenu').attr('onMenuClick');<br>var myHost = str.substring(str.indexOf('http://'),str.length-2);<br>alert(myHost);<br> |
Nice and simple!
4 04 2011
Here’s a straight forward one. For some reason (don’t ask) I had to update a content type in a Feature Receiver (I would have preferred to have created a new content type and inherit) by adding a new field to it. Here’s the code, purely for my personal reference but open in case other people […]