Bonjour,

je suis développeur php et je me mets à ajax et prototype.

Un rapide test pour la compréhension juste avec l'objet xhr : ça marche de suite.
Je me penche alors sur prototype, et là : aucun petit exemple trouvé sur le web ne veux marcher (ni ie, ni firefox), et je ne vois pas pourquoi.
Voici un exemple simple qui ne veut pas marcher :

le fichier interface :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>test</title>
<script type="text/javascript" src="prototype.js"></script>
<script language="javascript">
function gestionClic(){
	var url='go.php';
	var myAjax = new Ajax.Request(url,{method: 'get',onComplete: function(){ alert('yes') }, onFailure(){ alert('no') }});
}
</script>
</head>
<body>
<p><a href="" onclick="gestionClic()">Clic</a></p>
</body>
</html>
le fichier appelé, go.php :

Si quelqu'un peut m'aider, ça serait super, je me servirais bien d'Ajax professionnellement au plus vite.

bons clics à tous