11 10 2011
Get MySite Host with jQuery
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.
1 |
var str = $('#ID_MySiteMenu').attr('onMenuClick');<br>var myHost = str.substring(str.indexOf('http://'),str.length-2);<br>alert(myHost);<br> |
Nice and simple!
List Item Performance – Wide Lists and Lookups A Closer Look at a SharePoint SQL Query using the Developer Dashboard
Nice one Jim – I’ve actually been getting it from the User Information List picture url property but this is much simpler 😀