title: Jquery mobile ajax loader image
body: <p>I' m using this code in my mobile application built with phonegap and jQuery I want to show pictures from server but I couldn't integrate <code>showPageLoadingMsg</code> function and I 'm not convinced that this type of Ajax call is useful and powerful. So I want really know what type of Ajax call I should use and how to use <code>showPageLoadingMsg()</code> function in my Android phone application .</p>
  
  <pre><code>server = "http://monserveur.com/upload.php";
  var wid = $(window).width();
      if (server) {
          var xmlhttp = new XMLHttpRequest();
          xmlhttp.onreadystatechange=function(){
              if(xmlhttp.readyState == 4){
          alert('ready');
  
                  if (xmlhttp.status == 200  ) {
          alert('200');
                      document.getElementById('ousa').innerHTML = xmlhttp.responseText;
                  }
                  else {
                      document.getElementById('ousa').innerHTML = "Error retrieving pictures from server.";
                  }
              }
          };
          xmlhttp.open("GET", server+"?wid="+wid, true);
          xmlhttp.send();
  </code></pre>