Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 531 Bytes

WebUrlFromPageUrl.md

File metadata and controls

20 lines (18 loc) · 531 Bytes
title function web_service web_service_operation
WebUrlFromPageUrl
$().SPServices
Webs
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();
  }
});