My problem is that when I call a jquery function, nothing happens or I have an error.
I also saw with firebug that nothing is called when I press my button that calls it
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd]">
<?php // Encodé en UTF-8 (sans BOM)
require('basedonnee.php');
$BD = new basedonnee();
session_start();
?>
<html xmlns="[http://www.w3.org/1999/xhtml]">
<head>
<title>un titre</title>
<meta http-equiv="cache-control" content="no-cache" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/jquery-1.6.4.js"></script>
<script type="text/javascript" src="whirlpool.js"></script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<script type="text/javascript">
function changeMonth(place,nomois)
{
$j=jQuery.noConflict();
document.getElementById("mois").value = nomois+place
$j(document).get("getCalendrier.php?mois=2", function(data){
document.getElementById("calen").innerHTML = data;
});
}
</script>
</head>
This is the beginning of my index.php
My changemonth function is called, I checked. But my .get doesn’t work and my getCalendrier.php is never called.
Does someone have an idea to solve my problem?
thanks
You missed a
;after nomois+place