Miroku, are you including this in another page. Do you have a valid jquery object form the call $("#azioni")?
I had a weird problem a couple days back where the load would work the first time I clicked it, but the next time I clicked it, the whole page would reload. This was the result of javascript in the page I was loading over-ridding the definition for the jquery class. Hope this helps. On Oct 15, 2:47�am, Miroku <[EMAIL PROTECTED]> wrote: > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <title></title> > <link href="css/main.css" rel="stylesheet" type="text/css" > media="screen" /> > <link href="css/chat.css" rel="stylesheet" type="text/css" > media="screen" /> > <script src="javascript/jquery-1.2.6.min.js" type="text/javascript"></ > script> > <script type="text/javascript"> > function alCaricamento(){ > � � � � $('#contenuti').load('chat/chat.php?prova=x');} > > </script> > </head> > <body onload="alCaricamento();"> > <div id="refresh"></div> > <div id="menu"></div> > <div id="contenuti"></div> > </body> > </html> > > that's the page that works... the first one to be loaded > this one below is chat.php when the function neither alone neither by > clicking the link works > > <script type="text/javascript"> > <!-- > $("#azioni").load("azioni.php"); > > function caricaPagina(){ > � � � � $("#azioni").load('azioni.php'); > > } > > setInterval("caricaPagina()",2000); > > --> > </script> > <div id="opzioni"><a href="javascript:caricaPagina();">prova</a></div> > <div id="chatbox"> > � <div id="luogoEturni"></div> > � <div id="azioni"></div> > </div> > > Thanx