title: Listing List Item Attributes with JQuery on Sharepoint, linking to more JS
body: <p>So my company has a Sharepoint 2007 server running, and I have been tasked with setting up a Project Management space through that service. My goal is this- to be able to generate PDFs, client-side, containing information from whatever List Item the user chooses.</p>
  
  <p>What I have accomplished so far is determining that I can use a Shared Content Editor Web Part on the Default page, I can include JS in this web part, and that this JS can pull up List Item Titles using JQuery. The code I'm using is shown below (borrowed from an online article)-</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;Tasks&lt;/listName&gt; \
                          &lt;viewFields&gt; \
                              &lt;ViewFields&gt; \
                                 &lt;FieldRef Name='Status' /&gt; \
                             &lt;/ViewFields&gt; \
                          &lt;/viewFields&gt; \
                      &lt;/GetListItems&gt; \
                  &lt;/soapenv:Body&gt; \
              &lt;/soapenv:Envelope&gt;";
  
          $.ajax({
              url: "_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() {
              var liHtml = "&lt;li&gt;" + $(this).attr("ows_Title") + "&lt;/li&gt;";
              $("#tasksUL").append(liHtml);
          });
      }
  &lt;/script&gt;
  
  &lt;ul id="tasksUL"/&gt; 
  </code></pre>
  
  <p>Problem 1 - Inside the SOAP Envelope call, I tried changing the "FieldRef Name" value to 'Status' but found that this does nothing (if you're asking yourself about now if I have any JS experience, the answer is pretty much No). Down in the <strong><em>processResult</em></strong> method, I tried changing the attribute from "ows_Title" to "ows_Status" or "Status" to no avail. I just get back "undefined" for each List Item.</p>
  
  <p>Problem 2 - I want the user to be able to select a List Item and generate a PDF summary of the data. I know about Marak's PDF.JS library, but I'm not sure how to combine the two (in other words, I'm not sure how to either call the JS from within each List Item or have a separate list with the Item names that calls the JS).</p>
  
  <p>Thanks for all your help.</p>