Bonjour à tous

J'ai un petit probléme "d'objet attendu" sur ma balise <body onLoad="...">, j'ai cru comprendre que c'était car ma fonction n'était pas déclarée, hors elle l'est, du coup je ne comprend pas !
Voila ma page HTML en question (je fais des tests de RICO, framework AJAX).

Merci d'avance pour votre aide !

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
25
26
27
28
29
30
31
32
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
	<head>
		<title>Domino & Web 2.0 : Rico LiveGrid</title>
		<script src="rico/src/prototype.js" type="text/javascript"></script>
		<script src="rico/src/rico.js" type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
			function bodyOnLoad()
			{  
				var opts = {prefetchBuffer: false, onscroll : updateHeader};
			  new Rico.LiveGrid('data_grid', new Rico.Buffer.Base($('data_grid').tBodies[0])), opts);
			}
 
			function updateHeader( liveGrid, offset ) 
			{  
			}
		</script>
	</head>
	<body onload="bodyOnLoad()">
		<table id="data_grid_header" class="fixedTable" cellspacing="0" cellpadding="0" style="width:560px">
			  <tr>    
			  	<th class="first tableCellHeader">Titre Colonne 1</th>    
			  	<th class="tableCellHeader">Titre Colonne 2</th>    
			  	<th class="tableCellHeader">Titre Colonne 3</th>  
			  </tr>
		</table>
		<div id="viewPort" style="float:left">
		<table id="data_grid" class="fixedTable" cellspacing="0" cellpadding="0" style="float:left;width:560px;">  
		</table>
		</div>
	</body>
</html>