[Web2.0] scriptaculous effect scrollto

Michel michel a ziobudda.net
Gio 15 Mar 2007 12:10:25 CET


Ciao all. Non riesco a far funzionare l'effetto scrollTo di 
scriptacolous 1.7.0 (prototype 1.5.0).

Questa semplice pagina html di test non va:

<html>
<head>
<script language="JavaScript" src="/js/prototype.js" 
type="text/javascript"></script>
<script language="JavaScript" src="/js/scriptaculous.js" 
type="text/javascript">
<script language="JavaScript" src="/js/test.js" type="text/javascript">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
</head>
<body onload="pippo()">
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div id="m1">io sono m1</div>
</body>
</html>

dove test.js contiene solamente:

function pippo() {
 alert('a');
 Effect.ScrollTo('m1');
}

L'errore che mi viene restituito è "this.initialize has no properties"

Grazie.

M.

-- 
Michel 'ZioBudda' Morelli                       michel a ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ajaxblog.it 	                        MSN: michel a ziobuddalabs.it                  



Maggiori informazioni sulla lista Web2.0