I have everything working exept that for some reason this part of the code is not working.
<script type="text/javascript" src="jquery-1.6.4.min.js"></script>
<script language="JavaScript1.5" type="text/javascript">
function swapContent(cv) {
var url = "all_date_events.php";
$.post(url, {contentVar: cv} ,function(data) {
$("#RightBar").html(data).show();
});
}
</script>
That code connects to this page
all_dates_events.php
Any ideas are much appreciated I had this working at one point and am at a loss to why it is not working now.PHP Code:<?php
$contentVar = $_POST['contentVar'];
if ($contentVar == "AllDates") {
include ('Events_In_Order.php');
} else if ($contentVar == "January") {
include ('January_Calendar.php');
} else if ($contentVar == "Febuary") {
include ('February_Calendar.php');
} else if ($contentVar == "March") {
include('March_Calendar.php');
}
else if ($contentVar == "April") {
include('April_Calendar.php');
}
else if ($contentVar == "May") {
include('May_Calendar.php');
}
else if ($contentVar == "June") {
include('June_Calendar.php');
}
else if ($contentVar == "July") {
include('July_Calendar.php');
}
else if ($contentVar == "August") {
include('August_Calendar.php');
}
else if ($contentVar == "September") {
include('September_Calendar.php');
}
else if ($contentVar == "October") {
include('October_Calendar.php');
}
else if ($contentVar == "November") {
include('November_Calendar.php');
}
else if ($contentVar == "December") {
include ('December_Calendar.php');
}
?>


Reply With Quote
Bookmarks