CodePlexProject Hosting for Open Source Software
Is there any way to get Root web url or site collection url using this library
var rootSite = window.location.protocol + "//" + window.location.hostname;
There is a function that is more useful for subsites, if you need it, that will get the current site's name: http://spservices.codeplex.com/wikipage?title=$().SPServices.SPGetCurrentSite&referringTitle=Documentation,
which really overlaps the OOTB global variable: L_Menu_BaseUrl, to some degree. So you could use either one...
Hope this helps,
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.