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>
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>