2

I'm using a SPServices operation form to get list items. The code is as below:

NWF$().SPServices({
   operation: "GetListItems",
   async: false,
   listName: "listname",
   CAMLQuery: "<Query><Where><Eq><FieldRef Name='ID'/><Value Type='Number'>1</Value></Eq></Where></Query>",
   completefunc: function(xData, Status) 
   {                     
      NWF$(xData.responseXML).SPFilterNode("z:row").each  (function() {
        var title = ($(this).attr("ows_Title"));                 
      });
   }
});

But I am unable to get items because xData.responseXML is empty.

closed as off-topic by Benny Skogberg Jun 9 '16 at 11:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.