title: AJAX File Upload return value
body: <p>I am using this AJAX File Uploader</p>
  
  <p><a href="http://www.phpletter.com/Our-Projects/AjaxFileUpload/" rel="nofollow">http://www.phpletter.com/Our-Projects/AjaxFileUpload/</a></p>
  
  <p>I using this code:</p>
  
  <pre><code>function ajaxFileUpload() {
      $('input[type=file]').each(function () {
          if ($(this).val() == "") {
              return true;
          } else {
              $.ajaxFileUpload({
                  url: 'upload.php',
                  secureuri: false,
                  fileElementId: this.id,
                  success: function (data, status) {
                      $('body').html(data);
                  },
              })
          }
      });
      return false;
  }
  </code></pre>
  
  <p>I want the body's html turn into whatever I echo out from upload.php like what we usually do using $.ajax unfortunately when I echo out something from upload.php even if it is just a simple string, $('body')'s html is turned blank. Nothing is returned. Can anyone help ? </p>