title: Spinner with jquery mobile
body: <p>I'm trying to setup spinner load for my pages with jQuery Mobile. However spinner doesn't show itself when I'm loading something with Ajax. Here is my code. Any ideas what's wrong with it?</p>
  
  <pre><code>$("#invite").live('pageinit', function(e) {
    var render = function (items) {
      var view = '',
      index = 0;
      items.forEach(function(date){
        view +=
          '&lt;div class="ui-block" style="background:white;"&gt;' +
          date.address
          '&lt;/div&gt;';
        index++;
      });
      return view;
    };
    $.mobile.showPageLoadingMsg();
    $.ajax({                  
      url: 'someurl.com/file.json',
      dataType: "json",
      success: function(data) {
        $('#list').html(render(data.shared_dates));
        $.mobile.hidePageLoadingMsg();
      }
    })
  });
  </code></pre>