Function

$().SPServices

Web Service

Webs

Operation

WebUrlFromPageUrl

Example

var thisWeb;
$().SPServices({
  operation: "WebUrlFromPageUrl",
  pageURL: ((location.href.indexOf("?") > 0) ? location.href.substr(0, location.href.indexOf("?")) : location.href),
  completefunc: function (xData, Status) {
    $(xData.responseXML).SPFilterNode("z:row").each(function() { 
       thisWeb = $(xData.responseXML).find("WebUrlFromPageUrlResult").text();
  }
});

Last edited Mar 26, 2013 at 1:43 PM by sympmarc, version 2

Comments

No comments yet.