title: How to change the content of a div without reloading the webpage?
body: <p>I have a website, that uses PHP to select the content,</p>
  
  <pre><code>&lt;div&gt;  
      &lt;? include ("navigation.php"); // navigation.php generates the menu ?&gt;
  &lt;/div&gt;
  &lt;div&gt;
      &lt;?      
          $type = $_GET["type"];
          switch ($type) {
          case "page" :
              include "Text.php";
              break;  
          case "news":
              include "news_2.php";
              break;
          default :
              include "main.php";     
          }
      ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The url is of the format <code>domain.com/index.php?type</code>.
  I need to change the block <code>#content</code> without reloading the whole page, how can I do this?</p>