This is my code, works fine for folders, but I want to get all item without folders.
Code for get list items.
var qo = '<QueryOptions><ViewAttributes Scope="Recursive"/></QueryOptions>';
$().SPServices({
operation: "GetListItems",
async: false,
listName: list,
CAMLViewFields: f,
CAMLLimit: l,
CAMLQuery: q,
CAMLQueryOptions: qo,
completefunc: function (xData, Status) {
$(xData.responseXML).find("[nodeName='z:row']").each(function(i) {
var liHtml = "<tr><td>" + $(this).attr("ows_Title") + "</td> <td>" + $(this).attr("ows_LinkFilenameNoMenu") + "</td> <td>" + $(this).attr("ows_Created") + "</td> </tr>";
var title = $(this).attr("ows_LinkTitle")
$("#tasksUL").append(liHtml);
});
}
});
The solution was as clear as crystal.
Change thus code:
$(xData.responseXML).find("[nodeName='z:row']").each(function(i) {
for this:
$(xData.responseXML).SPFilterNode("z:row").each(function() {