我们可以使用SPService JQuery访问来自不同网站集的列表吗?

时间:2014-07-25 09:36:58

标签: sharepoint-2010 spservices

我想阅读不同网站集的列表。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:4)

以下是使用SPServices JQuery 2014.01成功测试的示例:

        $().SPServices({
        operation: "GetListItems",
        // Force sync so that we have the right values for the child column onchange trigger
        async: false,
        webURL: "/webs/sitecollection/site",
        listName: "tst",
        // Filter based on the currently selected parent column's value
        // Only get the parent and child columns
        CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
        // Override the default view rowlimit and get all appropriate rows
        CAMLRowLimit: 0,
        completefunc: function(xData, Status) {
            window.alert(Status);
        }
    });