title: jQuery Ajax call returning '[object XMLDocument]'
body: <p>I have an HTML page which I want to populate using Ajax.  I've copied code from other pages, (which are all in PHP, and I'm not sure if that matters), and it's returning <code>[object XMLDocument]</code>.  In the other pages (the PHP ones) I get whatever I printed out in the routine.</p>
  
  <p>Here's what I have:</p>
  
  <p>index.html - </p>
  
  <pre><code>&lt;html&gt; ... &lt;/html&gt;
  &lt;script&gt;
  $(document).ready(function() {
   getSplashHelpVideos();
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>In the javascript file - </p>
  
  <pre><code>function getSplashHelpVideos() {
   $.ajax({ 
     url: "include/get_help_videos.php",
     type: "POST",
     success: function(data) {
      alert(data);
     }
   });
   return;
  }
  </code></pre>
  
  <p>In get_help_videos.php (obviously this is just temporary code to try to figure out how this works) - </p>
  
  <pre><code>&lt;?php
   session_start();
   echo 'OK';
   return;
  ?&gt;
  </code></pre>
  
  <p>So I was expecting (and wanting) it to pop up an alert saying 'OK', which is what it would do in my other routines, but it pops up <code>[object XMLDocument]</code> instead.</p>
  
  <p>Am I doing something wrong? Or is it best to live with it, and parse the <code>XMLDocument</code>?</p>