Function

$().SPServices

Web Service

SiteData

Operation

EnumerateFolder

Example

This is an example from the Discussions.
 
$(function(){
  var currentSite = $().SPServices.SPGetCurrentSite();
  var txt=""; 
  $().SPServices({
    operation: "EnumerateFolder",
    async: false,
    strFolderUrl: currentSite,
    completefunc: function (xData, Status) {
      $(xData.responseXML).find("_sFPUrl").each(function(){
        txt += " Url: " + $("Url", this).text();
        txt += " IsFolder: " + $("IsFolder",this).text();
        txt += " LastModified: " + $("LastModified",this).text() + "";
      });
    }
  });
  txt += " ";
  $("#Result").html("").append(txt);
});

Last edited Aug 15, 2011 at 10:39 PM by sympmarc, version 1

Comments

No comments yet.