GetAllSubWebCollection

Function

$().SPServices

Web Service

Webs

Operation

GetAllSubWebCollection

Example

Thanks to Matt Bramer (iOnline247) for providing this example.

$().SPServices({
  operation: "GetAllSubWebCollection",
  completefunc: function(xData, Status) {
    console.log( xData.responseText );
    $(xData.responseXML).find("Webs > Web").each(function() {
      var $node = $(this);
      console.log( $node.attr("Title") );
    });
  }
});

Back to top