accessing the root web

Nov 17, 2014 at 4: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?

thx
Coordinator
Nov 17, 2014 at 4: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.

M.