I am unable to load a specific content located inside of an external html file using jquery inside DIV container :/
Please visit a link: http://www.flyingcowproduction.com/123 to have a better idea of a problem I am experiencing by pressing any button of the main menu. Each button should show a content assigned to it but instead the entire content inside the load.php file is displayed inside the container
Does anyone know what the problem is? I am also providing the code for the menu, javascript and the link to the loader page (view source).
MENU:
<ul id="menu">
<li><a href="home" class="openContentLink"><img src="img/menu/logo.png" alt="Platinum Limo Services" /></a>
<li><a id="services1" href="#Services" class="services openContentLink"></a></li>
<li><a id="rates1" href="#Rates" class="rates openContentLink"></a></li>
<li><a id="reservations1" href="#Reservations" class="reservations openContentLink"></a></li>
<li><a id="fleet1" href="#Fleet" class="fleet openContentLink"></a></li>
</ul>
JAVASCRIPT:
function loadPostUsingAjax(section) {
loading('on');
var loadStr = "load.php" + section;
$('#singleContentInside').load(loadStr, function(){
loading('off');
$("#services1").click(function() {
loadPostUsingAjax("#services")
});
$("#services2").click(function() {
loadPostUsingAjax("#services")
});
$("#rates1").click(function() {
loadPostUsingAjax("#rates")
});
$("#rates2").click(function() {
loadPostUsingAjax("#rates")
});
$("#reservations1").click(function() {
loadPostUsingAjax("#reservations")
});
$("#reservations2").click(function() {
loadPostUsingAjax("#reservations")
});
$("#fleet1").click(function() {
loadPostUsingAjax("#fleets")
});
$("#fleet2").click(function() {
loadPostUsingAjax("#fleets")
});
});
}
LOADER:
http://www.flyingcowproduction.com/123/load.php
Billion thanks in advance!!!