This is the code for index.php, with 3 divs:
<body>
<div class="div_header" id="div_header">
</div>
<div class="div_left" id="div_left">
<ul>
<li>Patienten
<ul>
<li><a href="#" id="patienten_anlegen">Patienten anlegen</a></li>
<li><a href="#" id="patienten_bearbeiten">Patienten bearbeiten</a></li>
<li><a href="#" id="patienten_loeschen">Patienten loeschen</a></li>
</ul>
</li>
<li>Termine
<ul>
<li>Termine anlegen</li>
<li>Termine bearbeiten</li>
<li>Termine löschen</li>
</ul>
</ul>
</div>
<div class="div_main" id="div_main">
</div>
<div class="div_right" id="div_right">
</div>
</body>
And menue.js:
$(document).ready(function(){
$("#patienten_anlegen").click(function(){
$("#div_main").load("templates/patienten/patienten_anlegen.php");
});
$("#patienten_bearbeiten").click(function(){
$("#div_main").load("templates/patienten/patienten_bearbeiten.php");
});
$("#patienten_loeschen").click(function(){
$("#div_main").load("templates/patienten/patienten_loeschen.php");
});
});
If I click on the "Patienten anlegen" I want to change the content of the "div_main". This works, but I want, if I press F5 (reload) to be on the same site, not at the index.php, and I don't want to see the "#" in the address bar at the browser (like: localhost/patientenverwaltung/#)
Sorry for my English, I hope you understand what I want ;)