title: Changing the language without reloading
body: <p>I am trying to change the language of my site directly without reloading the page when i click on any of my three language-flags (German, french and English).</p>
  
  <p>To correspond with the language I am saving a cookie called <code>lang</code> after clicking on a flag.
  I've got an function <code>LangText($de, $fr, $en);</code> that displays the right text depending on what the clients cookie has stored in.</p>
  
  <p>This is my function:</p>
  
  <pre><code>function LangText($de, $fr, $us){
      if(!isset($_COOKIE["lang"]) || $_COOKIE["lang"] == "de") echo $de;
      else if($_COOKIE["lang"] == "fr") echo $fr;
      else if($_COOKIE["lang"] == "us") echo $us;
      else return 0;
  }
  </code></pre>
  
  <p>Until now i was redirecting the user on a php that stored the cookie in, and redirected the user to the previous site.
  is there a possibility of realising this without any reloadings?</p>