Function

$().SPServices

Web Service

Lists

Operation

GetList

Notes

  • This operation accepts a webURL option. This allows you to change the context for the operation to a different site. Using a GUID for the listName does NOT change the context as it does with the Object Model, so you need to use the webURL option as well if your list is in a different site.

Example

This is an example from Matt Bramer (iOnline247).
$().SPServices({
  operation: "GetList",
  listName: "Master List",
  completefunc: function(xData, Status) {
    console.log(xData.responseText);
    $(xData.responseXML).find("Fields > Field").each(function() {
      var $node = $(this);
      console.log( "Type: " + $node.attr("Type") + " StaticName: " + $node.attr("StaticName") );
    });
  }
});

Last edited Jan 13, 2012 at 4:23 PM by sympmarc, version 2

Comments

yllsuarez Dec 8, 2014 at 6:36 PM 
Hello, how can i get the filtered from the server ?