Hi, I have problam whit jquery.
Whit IE work everything OK(work fine), but whit Mozila or Opera i have problam:
Hirs function "sec" work, fine, but secont in file index2.php "sec3" don't.
index.php
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script>
$(document).ready(function(){
var sec = setTimeout(function()
{
$('#sec').load('index2.php?id='+ Math.random());
}, 1000);
});
</script>
</head>
<body>
<div align="center" id="sec">Please wait...</div>
<div align="center" id="sec2">Please wait...</div>
</body>
</html>
index2.php
<script type="text/javascript" src="jquery.js"></script>
<?php
echo "PHP code here...<br>";
?>
<script>
$(document).ready(function(){
var sec3 = setInterval(function()
{
$('#sec2').load(time.php?id='+ Math.random());
}, 1000);
});
</script>
time.php
<?php
$sec = date("s");
echo $sec;
?>