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

New Post: Displaying List Items In Grid

$
0
0
I had to reformat hyour script to see that you hare missing the closing }); (Maybe you can post things a little more clearly in the future.)
  $(document).ready(function() {
    $().SPServices({
      operation: "GetListItems",
      async: false,
      listName: "SubSites",
      CAMLViewFields: "<ViewFields><FieldRef Name='SubSiteName' /><FieldRef Name='SubSiteIcon' />",
      completefunc: function (xData, Status) {
        $(xData.responseXML).SPFilterNode("z:row").each(function() {
          var tdHtml = "<tr class=''>";
          tdHtml = tdHtml + "<td id='icon'>" + $(this).attr("ows_SubSiteIcon") + $(this).attr("ows_SubSiteName") + "</td></tr>;
          $(".tablebodysites").append(tdHtml);
        });
      }
    });
    var siteTable = $('#sitepool').dataTable( { "bJQueryUI": true, "sPaginationType": "full_numbers", "bPaginate": true, "bLengthChange": true, "bFilter": true, "bSort": true, "bInfo": true, "bAutoWidth": true } );
  });
You can emit whatever markup you want, so I'm not sure exactly what your questions is.

M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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