This project has moved and is read-only. For the latest updates, please go here.

accessing the root web

Nov 17, 2014 at 5:31 PM
I know you can get the current web url using this
var siteurl = $().SPServices.SPGetCurrentSite();

and when using $().SPServices({
                webURL: <web url>,
you can set the weburl to access a different web

is there anyway to get the currentSite() parent , so you don't have to hardcode the webURL parameter when making operation calls?

Nov 17, 2014 at 5:41 PM
There's nothing in SPServices to get the current site's parent right now, per se. Probably the easiest way to get it is to parse apart the URL, dropping the current site's token.