Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: GetListItems not working

$
0
0
Hi Marc,

Thank you so much for SPServices. It's a treasure trove. Just what I was looking for...

I have one problem...I can't get GetListItems to work. I'm using SP 2007 with your GetListItem generator. I've checked the references to jQuery and your file many times and they work fine.

This is the code, which I'm putting in a Content Editor Web Part.
<script type="text/javascript"> $(document).ready(function() { var htmlTable = '<table>'; $().SPServices({ operation: "GetListItems", async: false, listName: "Domains", CAMLViewFields: "<ViewFields>" +"<FieldRef Name='Title' ></FieldRef>" +"<FieldRef Name='Domain_x0020_Description' ></FieldRef>" +"</ViewFields>", completefunc: function (xData, Status) { $(xData.responseXML).SPFilterNode('z:row').each(function() { htmlTable += "<tr>" +"<td>" + $(this).attr("ows_Title") + "</td>" +"<td>" + $(this).attr("ows_Domain_x0020_Description") + "</td>" +"</tr>"; }) htmlTable += "</table>"; } }); }); </script>

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>