Stavo cercando di risolvere via jquery che a quanto leggo sembra funzionare..
Ho scritto questo:
codice:
<?php
require_once('.././SSI.php');
$context['show_load_time'] = false;
template_html_above();
template_body_above();
?>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/jquery-2.0.3.min.js"></script>
<meta http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Lang" content="en">
<meta name="author" content="">
<meta http-equiv="Reply-to" content="@.com">
<meta name="generator" content="PhpED 6.0">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="creation-date" content="06/01/2011">
<meta name="revisit-after" content="15 days">
<title>Untitled</title>
</head>
<script type="text/javascript">
$(document).ready(function() {
$.ajaxSetup({ cache: "false", timeout: 20000, type: "POST" });
setInterval('Ricarica()', 1000);
});
function Ricarica()
{
$.ajax({
url: 'Report/Status.html',
type: 'POST', // Default value 'GET' sends data via GET
cache: true, // Alternate value false forces browser not to send cached page
success: function(Data){
$('#riquadro').html(Data); // Load data into a <div> as HTML
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
}
</script>
<body>
<div id="riquadro" style="width: 600px; height: 300px; background-color: aqua;">.... loading ....</div>
</body>
</html>
quando accedo alla index.php parte il codice e al refresh mi dice che non trova la pagina "Report/Status.html"
secondo voi cosa sto sbagliando?