jquery - Why doesnt work CAMLQueryOptions code in operation: "GetListItems" in SPservices for display all items without folders? -


this code, works fine folders, want item without folders.

code 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 clear crystal.

change code:

$(xdata.responsexml).find("[nodename='z:row']").each(function(i) { 

for this:

$(xdata.responsexml).spfilternode("z:row").each(function() {    

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -