title: jQuery and SPServices not showing jQuery spinner
body: <p>I'm using jQuery Mobile with SPServices to pull in SharePoint data to a mobile page. All data actually loads, but I haven't had success getting the <em>spinner</em> to load while it's pulling data. </p>
  
  <p>I had read on a few pages that you had to set <code>async: true</code> to get this to work, but it didn't help. I've also tried a couple methods for showing and hiding the spinner which neither worked.</p>
  
  <ul>
  <li>jQuery 1.7.2</li>
  <li>jQuery Mobile 1.1.0</li>
  <li>SPServices 0.7.1a <a href="http://spservices.codeplex.com/" rel="nofollow">http://spservices.codeplex.com/</a></li>
  </ul>
  
  <p>Any ideas?</p>
  
  <p><strong>Doesn't work</strong></p>
  
  <pre><code>$(document).delegate('#top-stories', 'pageshow', function () {
      function getList(){
               // ....
      } // end function
      $.mobile.showPageLoadingMsg();
      getList();
      $.mobile.hidePageLoadingMsg();
  });
  </code></pre>
  
  <p><strong>Doesn't Work</strong></p>
  
  <pre><code>$(document).delegate('#top-stories', 'pageshow', function () {
      function getList(){
          $.mobile.showPageLoadingMsg();
          $().SPServices({
              // ....
          });
          $.mobile.hidePageLoadingMsg();
      } // end function
      getList();  
  });
  </code></pre>
  
  <p><strong>Code that loads the items and works, just no spinner</strong></p>
  
  <pre><code>$(document).delegate('#top-stories', 'pageshow', function () {
      function getList(){
          $().SPServices({
              operation: "GetListItems",
              listName: "Posts",
              webURL: "/SiteDirectory/news_and_updates",
              async: true,
              CAMLRowLimit: 15,
              CAMLQuery: "&lt;Query&gt;&lt;OrderBy&gt;&lt;FieldRef Name='Created' Ascending='FALSE' /&gt;&lt;/OrderBy&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='PostCategory' /&gt;&lt;Value Type='Choice'&gt;Announcements&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;",
              CAMLViewFields: "&lt;ViewFields&gt;&lt;FieldRef Name='Title' /&gt;&lt;FieldRef Name='ID' /&gt;&lt;/ViewFields&gt;",
              completefunc: function (xData, Status) {
                $(xData.responseXML).SPFilterNode("z:row").each(function() {
                  var liHtml = "&lt;li data-theme=\"c\"&gt;&lt;a href=\"javascript:viewStory(" + $(this).attr("ows_ID") + ")\"&gt;" + $(this).attr("ows_Title") + "&lt;/a&gt;&lt;/li&gt;";
                  $("#top-stories ul").append(liHtml).listview("refresh");
                });
              }
          });
      } // end function
      getList();
  });
  </code></pre>