title: jQuery - load response string as a new page
body: <p>I call a perl script on the server side that build the whole html code of the new page and I want to load this new page when the script has finished. Here is the code I tried:</p>
  
  <pre><code>$j.post(url, {
      type: type,
      razname: raz,
      releasedocs: releases
  },
  function (data) {
          window.location.href = data;
          hide('statusContent');
          hide('statusFrame');
  });
  </code></pre>
  
  <p>data is actually the whole html code in a string but the href expects a file.
  How can I load this code in a new page (back button of the browser should go back to the page from where it has been called) without writing it in a file? </p>