Bonjour tout le monde,

Je débute depuis ce matin avec Prototype.

J'ai créer un code de test qui ne fonctionne pas

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
19
20
21
22
23
24
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!-- Bibliothèque prototype -->
	<script type="text/javascript" src="prototype-1.6.0.3.js"></script>
	<script type="text/javascript" src="prototype/afficher_tableau.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Liste des Maîtres de stage</title>
</head>
 
<body>
 
<?php 
        echo '<table border="1">
                        <tr>
                                <td></td>
                                <td></td>
                                <td></td>
                                <td></td>
                        </tr>
                  </table>';
?>
</body>
</html>
et voici l'évènement load qui est mis dans une autre page :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
function afficher_tableau_load()
{
	Event.observe(window, 'load', afficher_Tableau, false);
}
 
function afficher_Tableau()
{
	alert("cool cool");
}
L'alerte ne se lance pas.

Sauriez-vous me dire pourquoi s.v.p. ?

Merci d'avance.
beegees