title: Getting list data from SharePoint 2010 site using Jquery
body: <p>I am trying to get list data from sharepoint site using JQuery, but have got nothing returned yet, no errors in firebug either. Any clue what is wrong?</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() 
  {
      var soapEnv =
          "&lt;soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'&gt; \
              &lt;soapenv:Body&gt; \
                   &lt;GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'&gt; \
                      &lt;listName&gt;Action Items&lt;/listName&gt; \
                      &lt;viewFields&gt; \
                          &lt;ViewFields&gt; \
                             &lt;FieldRef Name='Title' /&gt; \
                         &lt;/ViewFields&gt; \
                      &lt;/viewFields&gt; \
                  &lt;/GetListItems&gt; \
              &lt;/soapenv:Body&gt; \
          &lt;/soapenv:Envelope&gt;";
  
      $.ajax({
          url: "http://my_site/_vti_bin/lists.asmx",
          type: "POST",
          dataType: "xml",
          data: soapEnv,
          complete: processResult,
          contentType: "text/xml; charset=\"utf-8\""
      });
  });
  
  function processResult(xData, status) {
      $(xData.responseXML).find("z\\:row").each(function() {
          console.log("aaaa");
          var liHtml = "&lt;li&gt;" + $(this).attr("ows_Title") + "&lt;/li&gt;";
          $("#tasksUL").append(liHtml);
      });
  }
  </code></pre>
  
  <p></p>
  
  <p> </p>