<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