You need to be logged in to post in the forums. If you do not have an account, please sign up first.
auto refresh page in opera mini
First, sorry by me english.i make a php script to view Online Web cam. The web cam (using a windows software that send by ftp image/captures automaticaly each 10 seconds). I need, ofcourse, the image or page reload after 10 seconds to show the new capture.
I try with
HTML metatag
<meta http-equiv='refresh' content='10;url=/cam_w.php' />
PHP header
header( "refresh:10;url=/cam_w.php" );
Javascript(i read that Opera mini have basic javascript support
<script type="text/javascript">
function rec_ie() {
location.reload();
}
</script>
<body onload="setInterval('rec_ie()',10000);">
**********************************************************
Another method is reload only a image with javascript, not the whole page, something like this
function reload_jpg(){
img =document.getElementById('imag');
img.src ='capture.jpg?' + Math.random();
var t=setTimeout('reload_jpg()',6500);
}
and the onload event in body
Nothing of above methods work !!!
But, testing script in the default browser in my Motorola W5 mobil (MOT-W5/08.00.05R MIB/BER2.2 Profile/MIDP-2.0 Configuration/CLDC-1.1 EGE/1.0) (no js suport), work fine, acept the refresh metatag and the page reload each 10 seconds.
I use OperaMini 4. Also i test with OperaMini 4/5 emulators, with the sames results , the page NOT reload, only if force reload using reload button (OperaMini5) or menu/tools/reload in OperaMini 4. Testin the page via browsers (Opera, Firefox, IE, Safari) all is OK, no problems.
I think the error is only in OperaMini browsers . Maybe i need change some setting, but i dont know.
Some idea?
the script is working in http://wc.emprear.com (the passwd is "rauch")
Thanks.